:root {
  --ink: #0d0f12;
  --paper: #f5f2ec;
  --sage: #4a7c59;
  --sage-light: #6da07d;
  --sage-pale: #d4e8db;
  --amber: #e8a230;
  --amber-pale: #fdf3e1;
  --cream: #faf8f4;
  --muted: #6b6f75;
  --border: #e2ddd6;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(245,242,236,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; letter-spacing: -0.03em; }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--ink); border-radius: 8px; }
.logo-icon svg { width: 16px; height: 16px; fill: var(--amber); }
.logo-beta { font-size: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 700; background: var(--amber); color: var(--ink); padding: 0.12rem 0.4rem; border-radius: 3px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: super; }
.back-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s; font-weight: 500; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* HERO BAND */
.legal-hero { background: var(--ink); padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.legal-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(74,124,89,0.18) 0%, transparent 60%), radial-gradient(ellipse at 10% 80%, rgba(232,162,48,0.1) 0%, transparent 55%); }
.legal-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 40px 40px; }
.legal-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.legal-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-light); background: rgba(109,160,125,0.15); border: 1px solid rgba(109,160,125,0.25); padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1.2rem; font-family: 'DM Sans', sans-serif; }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.legal-meta { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-weight: 300; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* BODY */
.legal-body { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.legal-toc { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 1.5rem 2rem; margin-bottom: 3rem; }
.legal-toc h4 { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.legal-toc ol { padding-left: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 2rem; }
@media(max-width:575px){ .legal-toc ol { grid-template-columns: 1fr; } }
.legal-toc li { font-size: 0.84rem; color: var(--sage); font-weight: 500; line-height: 1.5; }
.legal-toc li a { color: var(--sage); text-decoration: none; }
.legal-toc li a:hover { text-decoration: underline; }

.legal-section { margin-bottom: 2.8rem; scroll-margin-top: 80px; }
.legal-section h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--sage-pale); display: flex; align-items: center; gap: 0.6rem; }
.sec-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--sage-pale); color: var(--sage); font-size: 0.75rem; font-weight: 800; flex-shrink: 0; font-family: 'Syne', sans-serif; }
.legal-section p { font-size: 0.95rem; color: #3a3d42; line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.legal-section ul, .legal-section ol.list { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-section li { font-size: 0.93rem; color: #3a3d42; line-height: 1.75; margin-bottom: 0.4rem; font-weight: 300; }
.legal-section strong { font-weight: 600; color: var(--ink); }
.legal-link { color: var(--sage); font-weight: 500; }

.legal-highlight { background: var(--amber-pale); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.9rem; color: #5a4010; line-height: 1.65; font-weight: 400; }
.legal-highlight strong { color: #3a2a08; }

.legal-info-box { background: var(--sage-pale); border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.9rem; color: #1e3d29; line-height: 1.65; }
.legal-info-box strong { color: #133020; }

.legal-contact-box { background: var(--ink); border-radius: 16px; padding: 2rem; margin-top: 3rem; text-align: center; }
.legal-contact-box h3 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.legal-contact-box p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; font-weight: 300; }
.legal-contact-box a { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: var(--ink); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; padding: 0.7rem 1.5rem; border-radius: 100px; text-decoration: none; transition: all 0.2s; }
.legal-contact-box a:hover { background: #f0b445; transform: translateY(-2px); }

/* FOOTER */
.legal-footer { background: var(--ink); padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.legal-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.lf-brand { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1rem; }
.lf-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.lf-links a { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.lf-links a:hover { color: #fff; }
.lf-links a.active { color: var(--amber); font-weight: 600; }
.lf-copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
