/* ── LEGAL PAGES STYLESHEET ────────────────── */
/* Big Maw — style.css is loaded before this file.          */
/* This file extends the base theme for legal/doc pages.    */

/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1E1E2E;
    background-color: #F8FAFC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
ul { list-style: none; }

/* ── COLOR TOKENS ─────────────────────────── */
:root {
    --navy-950: #080F1A;
    --navy-900: #0B1628;
    --navy-800: #111F38;
    --navy-700: #192C50;
    --navy-600: #223C68;
    --navy-500: #2D4F85;
    --navy-400: #3D68A8;
    --navy-300: #5B87C7;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-300: #CBD5E1;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    --amber-500: #D49D30;
    --amber-400: #E0B04A;
    --amber-300: #EBC86D;
    --green-600: #16A34A;
    --green-500: #22C55E;
    --green-400: #4ADE80;
    --red-600: #DC2626;
}

/* ── NAVIGATION ───────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navy-950);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 76px;
    display: flex;
    align-items: center;
}
.nav-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--white);
}
.nav-logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--navy-950);
    font-family: 'JetBrains Mono', monospace;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    color: var(--slate-300);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amber-400);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--amber-400);
    color: var(--navy-950);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 8px;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
.nav-cta:hover { background-color: var(--amber-300); transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ── PAGE HERO ─────────────────────────────── */
.page-hero {
    padding: 140px 40px 72px;
    background-color: var(--navy-900);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(34,197,94,0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 40%, rgba(22,163,74,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(34,197,94,0.03) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--green-400);
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}
.effective-date {
    font-size: 0.95rem;
    color: var(--slate-300);
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

/* ── CONTAINER ─────────────────────────────── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── POLICY CONTENT CARD ───────────────────── */
.policy-content {
    background-color: var(--white);
    border: 1px solid var(--navy-700);
    border-radius: 16px;
    padding: 64px 60px;
    margin: -40px auto 80px;
    max-width: 900px;
    box-shadow: 0 8px 40px rgba(8,15,26,0.10), 0 2px 8px rgba(8,15,26,0.06);
    position: relative;
    z-index: 2;
}
.policy-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy-950);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--green-500);
    display: inline-block;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.8;
    margin-bottom: 18px;
}
.policy-content p:last-child { margin-bottom: 0; }
.policy-content ul,
.policy-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
    list-style: disc;
}
.policy-content ol { list-style: decimal; }
.policy-content ul li,
.policy-content ol li {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.75;
    margin-bottom: 10px;
    padding-left: 4px;
}
.policy-content ul li::marker { color: var(--green-500); }
.policy-content strong {
    color: var(--navy-950);
    font-weight: 700;
}
.policy-content a {
    color: var(--green-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.policy-content a:hover { color: var(--green-500); }

/* ── FOOTER ────────────────────────────────── */
.footer {
    background-color: var(--navy-950);
    padding: 72px 40px 0;
    color: var(--slate-300);
}
.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-desc {
    font-size: 0.92rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
    color: var(--slate-500);
    font-size: 0.92rem;
    transition: color 0.25s ease;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy {
    font-size: 0.84rem;
    color: var(--slate-500);
}
.footer-legal {
    display: flex;
    gap: 28px;
}
.footer-legal a {
    font-size: 0.84rem;
    color: var(--slate-500);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--white); }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .policy-content { padding: 48px 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .page-hero { padding: 120px 24px 56px; }
    .page-hero h1 { font-size: 2rem; }
    .container { padding: 0 24px; }
    .policy-content {
        padding: 36px 24px;
        margin: -32px 16px 48px;
        border-radius: 12px;
    }
    .policy-content h2 { font-size: 1.3rem; margin-top: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
