:root {
  color-scheme: dark;
  font-family: Archivo, Arial, sans-serif;
  color: oklch(94% .012 244);
  background: oklch(9% .018 252);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 78% 0, oklch(28% .09 237 / .32), transparent 34rem), oklch(9% .018 252); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid oklch(43% .035 248 / .42);
  background: oklch(9% .018 252 / .96);
}

.legal-nav {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.legal-brand img { width: min(310px, 48vw); height: auto; display: block; }
.legal-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.legal-nav-links a { color: oklch(76% .025 244); text-decoration: none; font-size: .9rem; font-weight: 700; }
.legal-nav-links a:hover { color: oklch(96% .008 244); }
.legal-nav-links .legal-nav-cta { padding: .72rem 1rem; border-radius: 999px; color: oklch(12% .018 252); background: oklch(96% .008 244); }
.legal-nav-links .legal-nav-cta:hover { color: oklch(12% .018 252); background: oklch(84% .025 244); }

.legal-main { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.legal-intro { max-width: 850px; }
.legal-back {
  width: fit-content;
  min-height: 42px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: .65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid oklch(52% .035 248);
  border-radius: 999px;
  color: oklch(84% .025 244);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.legal-back:hover { color: oklch(97% .008 244); border-color: oklch(69% .18 237); background: oklch(69% .18 237 / .1); transform: translateX(-2px); }
.legal-back:focus-visible { outline: 3px solid oklch(69% .18 237 / .42); outline-offset: 3px; }
.legal-kicker { margin-bottom: 1.25rem; color: oklch(74% .11 79); font: 700 .73rem/1.2 Geologica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.legal-intro h1 { max-width: 760px; margin: 0; font-size: clamp(3.5rem, 8vw, 7.4rem); line-height: .92; letter-spacing: -.055em; }
.legal-intro > p { max-width: 68ch; margin: 1.5rem 0 0; color: oklch(76% .028 244); font-size: 1.06rem; line-height: 1.7; }
.legal-date { display: block; margin-top: 1rem; color: oklch(59% .026 244); font-size: .78rem; }

.legal-content { max-width: 820px; margin-top: clamp(4rem, 9vw, 8rem); }
.legal-content section { padding: 2rem 0; border-top: 1px solid oklch(43% .035 248 / .48); }
.legal-content h2 { margin: 0 0 .8rem; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: oklch(75% .026 244); line-height: 1.75; }
.legal-content ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.legal-content strong { color: oklch(94% .012 244); }
.legal-content a { text-underline-offset: .2em; }

.legal-note { margin-top: 3rem; padding: 1.3rem 1.4rem; border: 1px solid oklch(74% .11 79 / .42); color: oklch(85% .03 79); line-height: 1.6; }

.legal-footer { border-top: 1px solid oklch(43% .035 248 / .42); }
.legal-footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; color: oklch(65% .025 244); font-size: .8rem; }
.legal-footer-brand { display: inline-flex; align-items: center; }
.legal-footer-brand img { display: block; width: clamp(205px, 22vw, 285px); height: auto; }
.legal-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.thanks-main { min-height: calc(100vh - 197px); display: grid; align-items: center; padding: 5rem 0; }
.thanks-panel { max-width: 880px; }
.thanks-panel h1 { margin: 0; font-size: clamp(3.7rem, 9vw, 8rem); line-height: .9; letter-spacing: -.06em; }
.thanks-panel h1 span { display: block; color: oklch(69% .18 237); }
.thanks-panel > p { max-width: 62ch; margin: 1.5rem 0 0; color: oklch(76% .028 244); font-size: 1.08rem; line-height: 1.7; }
.next-steps { margin: 2.5rem 0 0; padding: 0; display: grid; list-style: none; counter-reset: next-step; }
.next-steps li { padding: 1.1rem 0; display: grid; grid-template-columns: 54px 1fr; gap: 1rem; border-top: 1px solid oklch(43% .035 248 / .48); counter-increment: next-step; }
.next-steps li:last-child { border-bottom: 1px solid oklch(43% .035 248 / .48); }
.next-steps li::before { content: "0" counter(next-step); color: oklch(74% .11 79); font: 700 .72rem/1.5 Geologica, Arial, sans-serif; letter-spacing: .12em; }
.next-steps strong { display: block; }
.next-steps span { display: block; margin-top: .25rem; color: oklch(68% .025 244); line-height: 1.5; }
.thanks-actions { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.thanks-button { min-height: 50px; padding: .8rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid oklch(69% .18 237); border-radius: 999px; color: oklch(13% .018 252); background: oklch(69% .18 237); text-decoration: none; font-weight: 800; }
.thanks-button.secondary { color: oklch(94% .012 244); background: transparent; border-color: oklch(52% .035 248); }

@media (max-width: 720px) {
  .shell { width: min(100% - 2rem, 1120px); }
  .legal-nav { min-height: 78px; gap: 1rem; }
  .legal-nav-links a:not(.legal-nav-cta) { display: none; }
  .legal-brand img { width: min(188px, 54vw); }
  .legal-nav-links .legal-nav-cta { padding: .58rem .8rem; font-size: .78rem; white-space: nowrap; }
  .legal-footer-inner { padding: 1.5rem 0; align-items: center; flex-direction: column; text-align: center; }
  .legal-footer-brand img { width: min(240px, 70vw); }
  .legal-footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-back { transition: none; }
  .legal-back:hover { transform: none; }
}
