:root {
  color-scheme: light;
  --background: #f7f7f8;
  --ink: #18172b;
  --muted: #6c6a7d;
  --line: #e4e3ec;
  --brand: #6255f6;
  --brand-dark: #4d42da;
  --page-width: 78rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;
}

.page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.page > main {
  display: grid;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
}

h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--brand-dark);
}

.landing {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding-block: 6rem;
  text-align: center;
}

.landing h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5.4vw, 4.5rem);
  font-weight: 730;
  letter-spacing: -0.072em;
  line-height: 0.94;
  white-space: nowrap;
}

.landing p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 450;
}

.not-found {
  display: grid;
  place-content: center;
  justify-items: center;
  padding-block: 6rem;
  text-align: center;
}

.not-found h2,
.document h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.document {
  width: min(100%, 44rem);
  margin-inline: auto;
  padding-block: 5rem 7rem;
}

.document h2 {
  margin-bottom: 3rem;
}

.document section + section {
  margin-top: 2.5rem;
}

.document > .privacy-updated {
  margin-bottom: 3rem;
}

.document h3 {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document p,
.document .contact-details {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.document a,
.legal a {
  text-decoration-color: rgb(98 85 246 / 35%);
  text-underline-offset: 0.2em;
}

.document a:hover,
.document a:focus-visible,
.legal a:hover,
.legal a:focus-visible {
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5rem;
}

.legal .product-notice {
  margin: 0;
}

.document .contact-details {
  margin: 0;
  font-style: normal;
}

.document .contact-details span {
  display: block;
}

.legal nav {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 40rem) {
  .page {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .landing {
    padding-block: 3rem 4.5rem;
  }

  .document {
    padding-block: 3rem 5rem;
  }

  .legal {
    gap: 1.5rem;
    padding-block: 1.25rem;
  }
}
