/* ==================================
   RESET
================================== */

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

*,
*::before,
*::after {

  box-sizing:border-box;

}

img,
picture,
video{

  display:block;

  max-width:100%;

}

a{

  color:inherit;

  text-decoration:none;

}

button{

  font:inherit;
  border:none;
  background:none;
  cursor:pointer;

}

input,
textarea,
select{

  font:inherit;
  border:none;
  background:none;

}


/* ==================================
   BODY
================================== */

body{
  background:var(--bg);

  width:100%;
  min-height:100svh;
  min-height:100dvh;
  margin:0;
  padding:0;
  overflow-x:hidden;
  color:var(--text);
  display:flex;
  flex-direction:column;
  font-family:var(--font-body);
  line-height:1.55;

  -webkit-font-smoothing:antialiased;

  -moz-osx-font-smoothing:grayscale;

  text-rendering:optimizeLegibility;

}


/* ==================================
   PAGE
================================== */

.page{

  width:100%;
  min-height:100svh;
  isolation:isolate;

}


/* ==================================
   LEGAL PAGE
================================== */

body.legal-page{

  min-height:100svh;
  display:flex;
  flex-direction:column;

}

body.legal-page .legal-main{

  flex:1;

}