:root {
  --ink: #071824;
  --navy: #0a2940;
  --blue: #198fc4;
  --cyan: #42bee5;
  --teal: #19a89d;
  --paper: #f7fafc;
  --white: #ffffff;
  --muted: #5d6b75;
  --line: #dce7ed;
  --soft: #eaf3f6;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(7, 24, 36, .88);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; color: white; text-decoration: none; }
.brand-logo { display: block; width: 290px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.nav-cta {
  padding: 10px 16px;
  color: white !important;
  border: 1px solid rgba(66,190,229,.55);
  border-radius: 999px;
}
.menu-button { display: none; border: 0; background: none; color: white; padding: 8px; font: inherit; }

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 164px 0 82px;
  color: white;
  background:
    radial-gradient(circle at 84% 28%, rgba(66,190,229,.22), transparent 29%),
    radial-gradient(circle at 16% 90%, rgba(25,168,157,.13), transparent 27%),
    var(--ink);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to left, black, transparent 72%);
}
.legal-hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.03em; }
h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(3.1rem, 7vw, 6.2rem); }
.hero-copy { max-width: 720px; margin: 0; color: rgba(255,255,255,.68); font-size: 1.08rem; }

.legal-main { padding: 86px 0 112px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 68px; align-items: start; }
.toc {
  position: sticky;
  top: 112px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.toc strong { display: block; margin-bottom: 14px; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--blue); }
.toc a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: .9rem; border-bottom: 1px solid var(--line); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--ink); }
.legal-content { min-width: 0; }
.intro-card {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid rgba(25,143,196,.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(66,190,229,.09), rgba(25,168,157,.06));
}
.intro-card p { margin: 0; color: #38505f; }
.legal-section {
  scroll-margin-top: 112px;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.legal-section h2 { margin-bottom: 22px; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.legal-section h3 { margin: 27px 0 10px; font-size: 1.13rem; letter-spacing: -.01em; }
.legal-section p { margin: 0 0 15px; color: #3e5260; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 22px; color: #3e5260; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: #117ca8; text-underline-offset: 3px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.fact { padding: 18px 20px; border-radius: 14px; background: var(--soft); }
.fact span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.fact strong { display: block; font-size: .98rem; overflow-wrap: anywhere; }
.version { margin-top: 34px; color: var(--muted); font-size: .84rem; }

.footer-shell { color: white; background: var(--ink); }
.footer { padding: 44px 0; display: flex; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.48); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: white; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc a { display: inline-block; margin-right: 16px; border-bottom: 0; }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 70px; }
  .brand-logo { width: 220px; }
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    padding: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: #0a2232;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .legal-hero { padding: 126px 0 65px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .legal-main { padding: 64px 0 84px; }
  .facts { grid-template-columns: 1fr; }
  .legal-section, .intro-card { padding: 25px 22px; }
  .footer { flex-direction: column; }
}
