@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-400-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-400-600-latin.woff2") format("woff2");
}

:root {
  --background: #000000;
  --white: #ffffff;
  --accent: #99968c;
  --accent-hover: #b2afa7;
  --page-padding: 60px;
  --transition: 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.intro-test {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: var(--background);
  cursor: pointer;
  opacity: 1;
  transition: opacity 320ms ease;
}

.intro-test.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.intro-test.is-dismissed {
  display: none;
}

.intro-test[hidden] {
  display: none;
}

.intro-animation {
  width: min(400px, 70vw);
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

.intro-test.is-visible .intro-animation {
  opacity: 1;
}

.intro-animation svg {
  overflow: visible !important;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-padding);
}

.site-header {
  min-height: 39px;
}

.logo {
  display: block;
  width: 90px;
  height: auto;
}

.motion-ready .logo {
  opacity: 0;
  transition: opacity 450ms ease 60ms;
}

.hero {
  margin-top: 121px;
}

.hero-title {
  font-family: "Source Sans 3", sans-serif;
  max-width: 780px;
  margin: 0;
  font-size: 28.6px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.motion-ready .hero-title,
.motion-ready .cta {
  opacity: 0;
  transform: translateY(8px);
}

.motion-ready .hero-title {
  transition:
    opacity 950ms cubic-bezier(0.4, 0, 0.2, 1) 220ms,
    transform 950ms cubic-bezier(0.4, 0, 0.2, 1) 220ms;
}

.motion-ready .cta {
  transition:
    color var(--transition),
    opacity 950ms cubic-bezier(0.4, 0, 0.2, 1) 440ms,
    transform 950ms cubic-bezier(0.4, 0, 0.2, 1) 440ms;
}

.motion-ready.is-content-visible .logo,
.motion-ready.is-content-visible .hero-title,
.motion-ready.is-content-visible .cta {
  opacity: 1;
  transform: none;
}

.hero-line {
  display: block;
}

.cta {
  font-family: "Source Sans 3", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 90px;
  color: var(--accent);
  font-size: 23.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--transition);
}

.arrow {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.arrow svg {
  display: block;
  width: 42px;
  height: auto;
}

.cta:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    color: var(--white);
  }

  .cta:hover .arrow {
    transform: translateX(8px);
  }

  .cta.is-clicked {
    color: var(--accent);
  }

  .cta.is-clicked .arrow {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .arrow,
  .back-to-top-arrow {
    transition: none;
  }

  .intro-test {
    display: none;
  }

  .intro-animation {
    transition: none;
  }

  .motion-ready .logo,
  .motion-ready .hero-title,
  .motion-ready .cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-line {
    display: inline;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }

  .site-header {
    min-height: 32px;
  }

  .page {
    padding-top: 32px;
  }

  .logo {
    width: 66px;
  }

  .hero {
    margin-top: 100px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(20px, 5.1vw, 22px);
    line-height: 1.6;
    letter-spacing: -0.02em;
  }

  .cta {
    gap: 7px;
    margin-top: 68px;
    font-size: 16px;
    white-space: nowrap;
  }

  .arrow svg {
    width: 31px;
  }
}

.legal-page {
  padding-bottom: 80px;
}

.legal-header .logo-link {
  display: inline-block;
}

.legal-main {
  width: min(100%, 1240px);
  margin-top: 112px;
}

.legal-title {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.legal-version {
  margin: 12px 0 0;
  color: var(--accent);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.legal-content {
  margin-top: 72px;
}

.terms-document .legal-content {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  counter-reset: legal-section;
}

.privacy-document .legal-content {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
}

.privacy-document .legal-content::before,
.privacy-document .legal-content::after,
.terms-document .legal-content::before,
.terms-document .legal-content::after {
  position: absolute;
  left: calc(-1 * var(--page-padding));
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.privacy-document .legal-content::before,
.terms-document .legal-content::before {
  top: 0;
}

.privacy-document .legal-content::after,
.terms-document .legal-content::after {
  bottom: 0;
}

.terms-document .legal-section {
  display: grid;
  grid-template-columns: clamp(180px, calc(100% - 764px), 360px) minmax(0, 700px);
  column-gap: 64px;
  counter-increment: legal-section;
}

.privacy-document .legal-section {
  display: grid;
  grid-template-columns: clamp(180px, calc(100% - 764px), 360px) minmax(0, 700px);
  column-gap: 64px;
}

.legal-section + .legal-section {
  margin-top: 72px;
}

.terms-document .legal-section + .legal-section {
  position: relative;
  padding-top: 72px;
}

.privacy-document .legal-section + .legal-section {
  position: relative;
  padding-top: 72px;
}

.privacy-document .legal-section + .legal-section::before,
.terms-document .legal-section + .legal-section::before {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--page-padding));
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.legal-section h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.legal-section-number {
  font-size: 1em;
}

.legal-section p {
  margin: 0;
  font-size: 17px;
  line-height: 1.68;
}

.legal-section p + p {
  margin-top: 18px;
}

.legal-section ul {
  margin: 18px 0 0;
  padding-left: 1.25em;
}

.legal-section li {
  padding-left: 0.25em;
  font-size: 17px;
  line-height: 1.68;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section ul + p {
  margin-top: 18px;
}

.privacy-document .legal-title,
.privacy-document .legal-section h2,
.privacy-document .legal-section h3 {
  color: var(--white);
}

.privacy-document .legal-section h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
}

.privacy-document .legal-section h3 {
  grid-column: 2;
  margin-top: 28px;
  margin-bottom: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.privacy-document .legal-section p,
.privacy-document .legal-section li {
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  line-height: 1.56;
}

.privacy-document .legal-section p,
.privacy-document .legal-section ul {
  grid-column: 2;
}

.privacy-document .legal-section strong {
  font-weight: 600;
}

.privacy-document .legal-section ul {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.privacy-document .legal-section li strong {
  font-weight: 400;
}

.privacy-document .legal-section li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  padding-left: 0;
}

.privacy-document .legal-section li + li {
  margin-top: 12px;
}

.privacy-document .legal-section li::before {
  width: 11px;
  height: 1px;
  margin-top: 0.78em;
  background: currentColor;
  content: "";
}

.privacy-document .legal-section ul + p {
  margin-top: 28px;
}

.terms-document .legal-section h2 {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 18px;
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
}

.terms-document .legal-section h2:has(+ h3) {
  grid-row: 1 / span 2;
}

.terms-document .legal-section-number {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  transition: none;
}

.terms-document .legal-section-number::before {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  content: counter(legal-section);
  font-size: 22px;
  line-height: 1.35;
}

.terms-document .legal-section h3 {
  grid-column: 2;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
  margin: 0 0 6px;
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.56;
  letter-spacing: 0;
}

.terms-document .legal-section p + h3,
.terms-document .legal-section ul + h3 {
  margin-top: 28px;
}

.terms-document .legal-subsection-number {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.terms-document .legal-section-number a,
.terms-document .legal-subsection-number a,
.terms-document a[x-apple-data-detectors] .legal-section-number,
.terms-document a[x-apple-data-detectors] .legal-subsection-number,
.terms-document a[x-apple-data-detectors],
.terms-document a[href^="tel:"] {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font: inherit !important;
  pointer-events: none;
  text-decoration: none !important;
}

.terms-document .legal-section-number,
.terms-document .legal-section-number:hover,
.terms-document .legal-subsection-number,
.terms-document .legal-subsection-number:hover {
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  cursor: default;
}

.terms-document .legal-section p,
.terms-document .legal-section ul {
  grid-column: 2;
  margin-left: 64px;
}

.terms-document .legal-section p,
.terms-document .legal-section li {
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  line-height: 1.56;
}

.legal-section a {
  color: var(--accent);
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

.back-to-top {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: baseline;
  column-gap: 12px;
  width: fit-content;
  margin-top: 72px;
  color: var(--accent);
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}

.back-to-top-arrow {
  display: flex;
  align-self: baseline;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.privacy-document .back-to-top {
  grid-template-columns: 10px auto;
  column-gap: 20px;
  margin-top: 48px;
}

.privacy-document .back-to-top-arrow {
  justify-content: flex-start;
}

.terms-document .back-to-top {
  grid-template-columns: 10px auto;
  column-gap: 20px;
  margin-top: 48px;
}

.terms-document .back-to-top-arrow {
  justify-content: flex-start;
}

.legal-footer {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 48px;
  padding-top: 48px;
  color: var(--accent);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.legal-footer::before {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--page-padding));
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.legal-footer-nav {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.legal-footer-separator {
  display: inline-block;
  align-self: center;
  width: 1px;
  height: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  color: transparent;
  font-size: 0;
}

.back-to-top-arrow svg {
  display: block;
  width: auto;
  height: 13px;
}

.back-to-top:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .legal-section a:hover {
    color: var(--white);
  }

  .back-to-top:hover {
    color: var(--accent-hover);
  }

  .legal-footer a:hover {
    color: var(--accent-hover);
  }

  .back-to-top:hover .back-to-top-arrow {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .legal-page {
    padding-bottom: 64px;
    letter-spacing: normal;
  }

  .legal-main {
    margin-top: 84px;
  }

  .legal-title {
    font-size: 29px;
    letter-spacing: normal;
  }

  .legal-content {
    margin-top: 56px;
  }

  .legal-section + .legal-section {
    margin-top: 42px;
  }

  .terms-document .legal-section {
    display: block;
  }

  .privacy-document .legal-section {
    display: block;
  }

  .privacy-document .legal-section + .legal-section,
  .terms-document .legal-section + .legal-section {
    padding-top: 46px;
  }

  .privacy-document .legal-content,
  .terms-document .legal-content {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .legal-section h2 {
    margin-bottom: 14px;
    font-size: 20px;
    letter-spacing: normal;
  }

  .privacy-document .legal-section h2,
  .terms-document .legal-section h2:not(:has(+ h3)) {
    margin-bottom: 11px;
  }

  .terms-document .legal-section h2:has(+ h3) {
    margin-bottom: 24px;
  }

  .legal-section h3 {
    margin-top: 26px;
    font-size: 17px;
    letter-spacing: normal;
  }

  .privacy-document .legal-section h3 {
    margin-top: 26px;
    font-size: 16px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 16px;
    line-height: 1.65;
  }

  .privacy-document .legal-section p,
  .privacy-document .legal-section li {
    font-size: 16px;
    line-height: 1.56;
  }

  .terms-document .legal-section h2 {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 5px;
  }

  .terms-document .legal-section h3 {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 5px;
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: normal;
  }

  .terms-document .legal-subsection-number {
    position: relative;
    top: -1px;
    font-size: 15px;
    letter-spacing: normal;
  }

  .terms-document .legal-section-number {
    position: relative;
    top: -1px;
    font-size: 0;
    letter-spacing: normal;
  }

  .terms-document .legal-section-number::before {
    font-size: 15px;
    line-height: 27px;
  }

  .terms-document .legal-section p,
  .terms-document .legal-section ul {
    margin-left: 43px;
  }

  .terms-document .legal-section p,
  .terms-document .legal-section li {
    font-size: 16px;
    line-height: 1.56;
  }

  .back-to-top {
    grid-template-columns: 28px auto;
    column-gap: 10px;
  }

  .privacy-document .back-to-top {
    grid-template-columns: 9px auto;
    column-gap: 18px;
    margin-top: 40px;
  }

  .terms-document .back-to-top {
    grid-template-columns: 9px auto;
    column-gap: 18px;
    margin-top: 40px;
  }

  .back-to-top {
    margin-top: 56px;
    font-size: 16px;
  }

  .back-to-top-arrow svg {
    height: 12px;
  }

  .legal-footer {
    display: grid;
    grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
    gap: 0;
    width: 100%;
    margin-top: 40px;
    padding-top: 36px;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .legal-footer-nav {
    display: contents;
  }

  .legal-footer-separator {
    justify-self: center;
  }
}
