:root {
  --legal-ink: #090d10;
  --legal-charcoal: #28313c;
  --legal-slate: #3f5269;
  --legal-muted: #697483;
  --legal-line: #d8dee6;
  --legal-paper: #fbfcfe;
  --legal-font: "Barlow", sans-serif;
  --legal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--legal-ink);
  background: var(--legal-paper);
  font-family: var(--legal-font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.legal-container {
  width: min(calc(100% - 64px), 1440px);
  margin-inline: auto;
}

.legal-hero {
  padding: 148px 0 48px;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(203, 222, 243, 0.34), transparent 42%),
    linear-gradient(110deg, #fbfcfe 0%, #f5f8fc 52%, #eef3f8 100%);
  border-bottom: 1px solid var(--legal-line);
}

.legal-hero__inner {
  max-width: 760px;
}

.legal-kicker {
  margin: 0 0 16px;
  color: #2174bd;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -0.058em;
  line-height: 0.96;
  text-transform: uppercase;
}

.legal-hero__meta {
  margin: 0;
  color: #485a70;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.48;
}

.legal-document {
  padding: clamp(56px, 8vh, 96px) 0 88px;
  background: var(--legal-paper);
}

.legal-document__inner {
  max-width: 760px;
}

.legal-document h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  color: var(--legal-slate);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

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

.legal-document a {
  color: #2174bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 220ms ease-out;
}

.legal-document a:hover {
  color: var(--legal-ink);
}

.legal-note {
  padding: 22px 24px;
  margin-bottom: 36px;
  border-left: 2px solid #83b5ec;
  background: rgba(226, 236, 248, 0.46);
}

.legal-note p {
  margin: 0;
  color: var(--legal-charcoal);
}

.legal-document strong {
  font-weight: 500;
  color: var(--legal-charcoal);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 280ms ease-out,
    transform 280ms var(--legal-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  .legal-container {
    width: min(calc(100% - 32px), 1440px);
  }

  .legal-hero {
    padding-top: 120px;
    padding-bottom: 36px;
  }

  .legal-hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .legal-note {
    padding: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
