:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #f7f9fc;
  background: #05070a;
  font-synthesis: none;
  --bg: #05070a;
  --text: #f7f9fc;
  --muted: #919baa;
  --line: rgba(255, 255, 255, .12);
  --blue: #1385ff;
  --blue-light: #71baff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.scroll-meter { position: fixed; z-index: 100; inset: 0 0 auto; height: 2px; background: rgba(255,255,255,.05); }
.scroll-meter span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--blue); }

.legal-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 690; letter-spacing: -.02em; }
.brand-lockup img { width: 30px; height: 30px; border-radius: 8px; }
.legal-header nav { display: flex; gap: 26px; color: #aab2be; font-size: 12px; }
.legal-header nav a, .home-link { transition: color .18s ease; }
.legal-header nav a:hover, .home-link:hover { color: white; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.language-toggle { border: 0; padding: 9px; background: transparent; color: #aab2be; font-size: 12px; cursor: pointer; }
.home-link { padding: 10px 17px; border-radius: 999px; background: white; color: #05070a; font-size: 12px; font-weight: 650; }
.home-link:hover { color: #05070a; }

.legal-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px max(48px, calc((100vw - 1260px)/2)) 82px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 78% 30%, rgba(19,133,255,.22), transparent 29%), linear-gradient(180deg, #080b10, #05070a);
}
.hero-orb { position: absolute; width: 560px; height: 560px; right: -100px; top: 40px; border-radius: 50%; background: rgba(19,133,255,.16); filter: blur(120px); animation: breathe 7s ease-in-out infinite alternate; pointer-events: none; }
.eyebrow, .policy-kicker { position: relative; margin: 0; color: var(--blue-light); font-size: 11px; font-weight: 720; letter-spacing: .17em; }
.legal-hero h1 { position: relative; max-width: 980px; margin: 22px 0 30px; font-size: clamp(70px, 9vw, 132px); line-height: .88; letter-spacing: -.075em; animation: hero-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy { position: relative; max-width: 650px; margin: 0; color: #a9b2bf; font-size: 18px; line-height: 1.55; animation: hero-rise .8s .12s cubic-bezier(.2,.8,.2,1) both; }
.effective-date { position: absolute; right: max(48px, calc((100vw - 1260px)/2)); bottom: 86px; display: grid; gap: 8px; min-width: 190px; padding-top: 15px; border-top: 1px solid var(--line); color: #7f8a99; font-size: 11px; }
.effective-date strong { color: white; font-size: 13px; }

.legal-layout { width: min(1260px, calc(100% - 96px)); margin: 0 auto; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 92px; }
aside { position: sticky; top: 0; height: 100svh; align-self: start; display: flex; flex-direction: column; justify-content: center; padding: 90px 0; }
aside > p { margin: 0 0 22px; color: #687381; font-size: 9px; font-weight: 720; letter-spacing: .16em; }
aside a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; color: #778290; font-size: 12px; transition: color .18s ease, transform .18s ease; }
aside a:hover, aside a.is-current { color: white; transform: translateX(4px); }
aside a span { color: #4c5664; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 9px; }
aside a b { font-weight: 520; }

.policies { border-left: 1px solid var(--line); }
.policy { position: relative; min-height: 78svh; display: grid; grid-template-columns: 72px minmax(0, 720px); gap: 44px; align-content: start; padding: 132px 0 132px 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.policy-number { padding-top: 4px; color: #4f5a68; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; }
.policy-copy h2 { max-width: 720px; margin: 18px 0 26px; font-size: clamp(48px, 6vw, 76px); line-height: .94; letter-spacing: -.065em; }
.policy-copy .lead { max-width: 680px; margin: 0 0 62px; color: #bec6d0; font-size: 18px; line-height: 1.6; }
.policy-copy h3 { margin: 42px 0 12px; color: #f5f7fa; font-size: 14px; letter-spacing: -.01em; }
.policy-copy p, .policy-copy li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.policy-copy p { margin: 0; }
.policy-copy a { color: #80c1ff; text-decoration: underline; text-decoration-color: rgba(128,193,255,.35); text-underline-offset: 3px; }
.policy-copy ul { margin: 0; padding: 0; list-style: none; }
.policy-copy li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.policy-copy li:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.policy-copy li::before { content: "—"; position: absolute; left: 0; color: #566171; }
.policy-copy strong { color: #d9dfe7; font-weight: 620; }
.policy-copy dl { margin: 56px 0 34px; border-top: 1px solid var(--line); }
.policy-copy dl div { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.policy-copy dt { color: #707b89; font-size: 11px; }
.policy-copy dd { margin: 0; color: #dce1e7; font-size: 13px; }
.fine-print { padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px !important; }
.contact-policy { min-height: 100svh; border-bottom: 0; }

footer { min-height: 170px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 40px max(42px, calc((100vw - 1260px)/2)); border-top: 1px solid var(--line); color: #7f8997; font-size: 11px; }
footer p { text-align: center; }
footer > span { justify-self: end; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }

@media (max-width: 980px) {
  .legal-header { height: 68px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .legal-header nav { display: none; }
  .home-link { display: none; }
  .legal-hero { min-height: 88svh; padding: 130px 24px 64px; }
  .legal-hero h1 { font-size: clamp(58px, 15vw, 92px); }
  .hero-copy { max-width: 570px; padding-right: 0; }
  .effective-date { position: relative; right: auto; bottom: auto; margin-top: 54px; }
  .legal-layout { width: calc(100% - 48px); display: block; }
  aside { display: none; }
  .policies { border-left: 0; }
  .policy { min-height: 0; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 96px 0; }
  .policy-copy h2 { font-size: clamp(45px, 12vw, 68px); }
  .policy-copy .lead { margin-bottom: 50px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand-lockup, footer > span { justify-self: center; }
  footer p { margin: 0; }
}

@media (max-width: 540px) {
  .legal-layout { width: calc(100% - 36px); }
  .policy { display: block; padding: 82px 0; }
  .policy-number { margin-bottom: 28px; }
  .policy-copy h2 { font-size: 47px; }
  .policy-copy .lead { font-size: 16px; }
  .policy-copy dl div { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
