@font-face { font-family: 'ClashGrotesk'; src: url('fonts/ClashGrotesk-300.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'ClashGrotesk'; src: url('fonts/ClashGrotesk-400.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ClashGrotesk'; src: url('fonts/ClashGrotesk-500.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ClashGrotesk'; src: url('fonts/ClashGrotesk-600.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'ClashGrotesk'; src: url('fonts/ClashGrotesk-700.otf') format('opentype'); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #4cff00;
  --secondary: #003e29;
  --bg: #ffffff;
  --text: #0d1a0f;
  --muted: #6b7c6e;
  --border: #e8ede9;
  --surface: #f6f8f6;
}
html { scroll-behavior: smooth; }
body { font-family: 'ClashGrotesk', system-ui, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-logo img { height: 32px; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--primary); color: var(--secondary); padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.2s, transform 0.15s; }
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* Legal hero */
.legal-hero { background: var(--secondary); color: #fff; padding: 140px 48px 64px; position: relative; overflow: hidden; }
.legal-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(76,255,0,0.18), transparent 70%); pointer-events: none; }
.legal-hero-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(76,255,0,0.14); color: var(--primary); padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.legal-eyebrow span { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; display: inline-block; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.legal-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255,255,255,0.6); }
.legal-meta strong { color: rgba(255,255,255,0.92); font-weight: 500; }

/* Layout: TOC + article */
.legal-layout { max-width: 1000px; margin: 0 auto; padding: 56px 48px 100px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; text-decoration: none; color: var(--muted); font-size: 13.5px; line-height: 1.4; padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.legal-toc a:hover { background: var(--surface); color: var(--text); }
.legal-toc a.active { color: var(--secondary); background: rgba(76,255,0,0.1); border-left-color: var(--primary); font-weight: 500; }

/* Article typography */
.legal-article { max-width: 680px; }
.legal-intro { font-size: 17px; line-height: 1.7; color: var(--muted); margin-bottom: 40px; }
.legal-article section { scroll-margin-top: 96px; margin-bottom: 40px; }
.legal-article h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 16px; display: flex; gap: 12px; align-items: baseline; }
.legal-article h2 .num { color: var(--primary); -webkit-text-stroke: 0.4px var(--secondary); font-weight: 700; font-size: 18px; flex-shrink: 0; min-width: 28px; }
.legal-article h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; }
.legal-article p { font-size: 15.5px; line-height: 1.72; color: #2c3a2f; margin-bottom: 14px; }
.legal-article ul { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-article ul li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: #2c3a2f; }
.legal-article ul li::before { content: ''; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--secondary); }
.legal-article a[href^="http"], .legal-article a[href^="mailto"], .legal-article .inline-link { color: var(--secondary); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(76,255,0,0.6); text-underline-offset: 3px; }

/* Numbered step list */
.legal-article ol.steps { list-style: none; counter-reset: step; margin: 10px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-article ol.steps li { position: relative; padding: 4px 0 4px 42px; font-size: 15.5px; line-height: 1.55; color: #2c3a2f; counter-increment: step; min-height: 28px; display: flex; align-items: center; }
.legal-article ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); color: var(--primary); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Callouts */
.callout { border-radius: 18px; padding: 24px 26px; margin-bottom: 22px; }
.callout h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.callout p { margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout svg { width: 17px; height: 17px; flex-shrink: 0; }
.callout-summary { background: var(--surface); border: 1px solid var(--border); }
.callout-summary p { color: #3a4a3d; }
.callout-warning { background: #fff8ec; border: 1px solid #ffe2a8; }
.callout-warning h3 { color: #8a5a00; }
.callout-warning p { color: #6b4e1e; }

/* Back link */
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 28px; transition: color 0.2s; }
.legal-back:hover { color: var(--secondary); }
.legal-back svg { width: 15px; height: 15px; }

/* Footer (matches index) */
footer { background: var(--secondary); padding: 56px 48px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 48px; }
.footer-logo img { height: 28px; display: block; filter: brightness(0) invert(1); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 7px; }
.footer-col a:hover { color: var(--primary); }
.footer-col svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-text { font-size: 13px; color: rgba(255,255,255,0.4); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; padding: 40px 24px 80px; }
  .legal-toc { display: none; }
  .legal-article { max-width: 100%; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .legal-hero { padding: 110px 24px 48px; }
  footer { padding: 40px 20px 28px; gap: 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px 48px; }
}
