/* ═══════════════════════════════════════════
   legal.css — Privacy Policy & Terms pages
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:      #1a6b4a;
    --green-mid:  #2a8a62;
    --gold:       #C9A84C;
    --ink:        #0D0F14;
    --ink-mid:    #2d3040;
    --ink-light:  #6b7280;
    --border:     #e5e7eb;
    --bg:         #f9fafb;
    --white:      #ffffff;
    --radius:     10px;
    --font:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink-mid);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
}

/* ── NAV ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}
.nav-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-mark svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}
.nav-back {
    font-size: 13px;
    color: var(--ink-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.nav-back:hover { color: var(--green); }
.nav-back svg { width: 14px; height: 14px; }

/* ── HERO ── */
.legal-hero {
    background: linear-gradient(135deg, #f0faf5 0%, #ffffff 60%);
    border-bottom: 1px solid var(--border);
    padding: 56px 24px 40px;
    text-align: center;
}
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26,107,74,.08);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.legal-hero h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.25;
}
.legal-hero p {
    color: var(--ink-light);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto;
}

/* ── LAYOUT ── */
.legal-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .legal-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ── SIDEBAR TOC ── */
.legal-toc {
    position: sticky;
    top: 80px;
    font-size: 13px;
}
.toc-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 12px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--ink-light);
    text-decoration: none;
    transition: all .15s;
    line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
    color: var(--green);
    background: rgba(26,107,74,.06);
}
@media (max-width: 768px) { .legal-toc { display: none; } }

/* ── CONTENT ── */
.legal-content { min-width: 0; }

.legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}
.legal-section:last-child { margin-bottom: 0; }

.section-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.legal-section p {
    margin-bottom: 12px;
    color: var(--ink-mid);
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
.legal-section li {
    margin-bottom: 6px;
    color: var(--ink-mid);
}

/* data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.data-table th {
    background: #f3f4f6;
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--ink-mid);
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #fafafa; }

/* callout box */
.callout {
    background: rgba(26,107,74,.05);
    border-left: 3px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--ink-mid);
}
.callout.warning {
    background: rgba(201,168,76,.06);
    border-left-color: var(--gold);
}
.callout strong { color: var(--ink); }

/* ── FOOTER ── */
.legal-footer {
    background: var(--ink);
    color: rgba(255,255,255,.5);
    padding: 28px 24px;
    text-align: center;
    font-size: 13px;
}
.legal-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.legal-footer a:hover { color: #fff; }
.legal-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
