/* ── Loginboard Legal Pages — shared stylesheet ──────────────────────────────
   Place at: public/css/legal.css
   Used by: privacy.blade.php, terms.blade.php, cookies.blade.php
   Design tokens identical to home.blade.php & about.blade.php
   ─────────────────────────────────────────────────────────────────────────── */

:root {
    --bg:         #fff;
    --surface:    #F7F8FA;
    --ink:        #1A1A1A;
    --ink-mid:    #555;
    --ink-soft:   #888;
    --line:       #E5E7EB;
    --line-soft:  #F0F1F3;
    --accent:     #1D4ED8;
    --accent-bg:  #EFF6FF;
    --accent-mid: #BFDBFE;
    --success:    #16A34A;
    --danger:     #DC2626;
    --r:          6px;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--accent); }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    font-weight: 700; font-size: 14px;
    letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 6px;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    font-size: 12.5px; font-weight: 500; color: var(--ink-mid);
    padding: 5px 10px; border-radius: var(--r);
    transition: background .1s, color .1s;
    text-decoration: none;
}
.nav-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-cta {
    font-size: 12.5px; font-weight: 600; color: #fff;
    background: var(--accent); padding: 6px 14px;
    border-radius: var(--r); transition: opacity .1s;
    text-decoration: none;
}
.nav-cta:hover { opacity: .88; text-decoration: none; }

/* ── Page shell ───────────────────────────────────────────────────────────── */
.page { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }

/* ── Eyebrow badge ────────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-bg);
    border: 1px solid var(--accent-mid);
    padding: 4px 10px; border-radius: 20px; margin-bottom: 20px;
}

/* ── Page title & meta ────────────────────────────────────────────────────── */
.legal-title {
    font-size: 30px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.1;
    margin-bottom: 12px;
}
.legal-meta {
    font-size: 12px; color: var(--ink-soft);
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
    display: flex; gap: 20px; flex-wrap: wrap;
}
.legal-meta span { display: flex; align-items: center; gap: 5px; }

/* ── TOC ──────────────────────────────────────────────────────────────────── */
.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 48px;
}
.toc-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 12px;
}
.toc ol {
    padding-left: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}
.toc ol li { font-size: 12.5px; }
.toc ol li a { color: var(--accent); font-weight: 500; }
.toc ol li a:hover { text-decoration: underline; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.legal-section { margin-bottom: 44px; scroll-margin-top: 60px; }

.legal-section h2 {
    font-size: 15px; font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.legal-section h2 .sec-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 50%;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.legal-section h3 {
    font-size: 13px; font-weight: 700;
    margin-top: 16px; margin-bottom: 6px;
    color: var(--ink);
}
.legal-section p {
    font-size: 13px; color: var(--ink-mid);
    line-height: 1.8; margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
    margin: 8px 0 12px 18px;
}
.legal-section li {
    font-size: 13px; color: var(--ink-mid);
    line-height: 1.75; margin-bottom: 4px;
}
.legal-section strong { color: var(--ink); font-weight: 600; }

/* ── Highlight box ────────────────────────────────────────────────────────── */
.highlight-box {
    background: var(--accent-bg);
    border: 1px solid var(--accent-mid);
    border-radius: var(--r);
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.7;
}
.highlight-box strong { color: var(--accent); }

/* ── Warning box ──────────────────────────────────────────────────────────── */
.warn-box {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--r);
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    color: #7F1D1D;
    line-height: 1.7;
}

/* ── Contact card ─────────────────────────────────────────────────────────── */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 48px;
}
.contact-card h3 {
    font-size: 13px; font-weight: 700; margin-bottom: 6px;
}
.contact-card p { font-size: 13px; color: var(--ink-mid); line-height: 1.7; }

/* ── Sibling-page links ───────────────────────────────────────────────────── */
.legal-nav {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 48px;
}
.legal-nav-link {
    font-size: 12px; font-weight: 500;
    padding: 5px 14px; border-radius: 20px;
    border: 1px solid var(--line);
    color: var(--ink-mid); background: var(--surface);
    text-decoration: none; transition: border-color .1s, color .1s;
}
.legal-nav-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.legal-nav-link.active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--line);
    padding: 24px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--ink-soft);
    flex-wrap: wrap; gap: 12px;
}
.footer-brand {
    display: flex; align-items: center; gap: 6px;
    font-weight: 700; color: var(--ink); font-size: 13px;
    letter-spacing: -0.02em;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .legal-title { font-size: 22px; }
    .toc ol { grid-template-columns: 1fr; }
    .nav-links .nav-link { display: none; }
    .footer { flex-direction: column; text-align: center; }
    .legal-meta { gap: 10px; }
}
