/* ============================================================
   VANGUARD INITIATIVE — legal.css
   Shared styles for legal pages (Privacy, Terms, SMS)
   ============================================================ */

:root {
    --gold: #c9a84c;
    --gold-light: #f0c858;
    --gold-grad: linear-gradient(135deg, #f5d67a 0%, #c9a84c 50%, #8b6410 100%);
    --bg: #09090f;
    --bg-2: #0d0e18;
    --bg-card: #13141f;
    --border: rgba(201, 168, 76, 0.15);
    --border-dim: rgba(255, 255, 255, 0.06);
    --text: #f0f0f8;
    --text-muted: #8a9bb8;
    --text-dim: #5a6680;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── Top Nav ── */
.legal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    padding: 16px 0;
}
.legal-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-brand-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.legal-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.legal-brand-name {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-back {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    padding: 8px 16px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    transition: all 0.25s;
}
.legal-back:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: var(--gold);
}

/* ── Page Header ── */
.legal-header {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--border-dim);
    text-align: center;
}
.legal-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.legal-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.legal-updated {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ── Main Content ── */
.legal-content {
    padding: 56px 0 80px;
}
.legal-content h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold-light);
    margin: 48px 0 16px;
    padding-top: 8px;
    scroll-margin-top: 80px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 10px;
}
.legal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content ul, .legal-content ol {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 18px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content hr {
    border: none;
    border-top: 1px solid var(--border-dim);
    margin: 40px 0;
}

/* ── Table of Contents ── */
.legal-toc {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 20px 26px;
    margin-bottom: 40px;
}
.legal-toc-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.legal-toc ol {
    list-style: decimal;
    padding-left: 22px;
    margin: 0;
    font-size: 0.88rem;
}
.legal-toc li { margin-bottom: 4px; color: var(--text-muted); }
.legal-toc a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.legal-toc a:hover { color: var(--gold-light); }

/* ── Callouts ── */
.legal-callout {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    padding: 16px 22px;
    margin: 20px 0;
    color: #93c5fd;
    font-size: 0.9rem;
}
.legal-callout strong { color: #bfdbfe; }
.legal-callout--warn {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}
.legal-callout--warn strong { color: #fde68a; }

/* ── Contact Box ── */
.legal-contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 32px;
}
.legal-contact-box h3 {
    color: var(--gold-light);
    margin-bottom: 8px;
}
.legal-contact-box p {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

/* ── Footer ── */
.legal-footer {
    background: var(--bg);
    border-top: 1px solid var(--border-dim);
    padding: 36px 0;
    text-align: center;
}
.legal-footer p {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.legal-footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color 0.2s;
}
.legal-footer-links a:hover { color: var(--gold); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .legal-header { padding: 48px 0 36px; }
    .legal-content { padding: 40px 0 56px; }
    .legal-content h2 { font-size: 1.15rem; }
    .legal-brand-name { display: none; }
}
