/* Shared styles for legal pages (privacy, terms). Mirrors the landing
   palette and typography so the user never feels they've left the site. */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #050b04;
  --bg-2: #0a160a;
  --bg-3: #0f1f0f;
  --line: #1c2e1c;
  --text: #ffffff;
  --dim: #B0D080;
  --muted: #8FBB8F;
  --faint: #4A6045;
  --lime: #9DC554;
  --lime-glow: #b8e063;
  --gold: #FFD700;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--lime-glow); }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.035em; }

/* Background grid + glow */
.bg-court {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(157,197,84,0.10), transparent 60%);
}
.bg-grid {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(157,197,84,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,197,84,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
}

/* Nav */
.nav {
  padding: 18px 0;
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 4, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(28,46,28,0.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 24px rgba(157,197,84,0.4); }
.nav-back {
  padding: 8px 16px; background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.nav-back:hover { border-color: var(--lime); color: var(--lime); }

/* Hero */
.legal-hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(157,197,84,0.10);
  border: 1px solid rgba(157,197,84,0.30);
  color: var(--lime);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.legal-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.legal-hero h1 .grad {
  background: linear-gradient(120deg, var(--lime) 0%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-hero .meta {
  color: var(--muted);
  font-size: 14px;
}

/* TOC */
.toc {
  margin: 24px auto 48px;
  max-width: 720px;
  padding: 20px 24px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative; z-index: 1;
}
.toc h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.toc ol {
  list-style: none; counter-reset: toc;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
@media (max-width: 600px) { .toc ol { grid-template-columns: 1fr; } }
.toc li { counter-increment: toc; font-size: 14px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--faint); font-weight: 700;
}
.toc a { color: var(--dim); }
.toc a:hover { color: var(--lime); }

/* Content */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative; z-index: 1;
}
.legal-content section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-content h2::before {
  content: attr(data-num);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: rgba(157,197,84,0.10);
  border: 1px solid rgba(157,197,84,0.30);
  border-radius: 6px;
  flex-shrink: 0;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
  margin: 18px 0 8px;
}
.legal-content p { color: var(--dim); margin-bottom: 12px; }
.legal-content ul { margin: 8px 0 14px 20px; }
.legal-content li { color: var(--dim); margin-bottom: 6px; }
.legal-content strong { color: #fff; }
.legal-content code {
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--lime);
}

/* Footer */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
footer a { color: var(--muted); margin: 0 12px; }
footer a:hover { color: var(--lime); }
