/* ─────────────────────────────────────────────────────────────
   Shared styles for SpokenEdge sub-pages
   (privacy.html · terms.html · compliance.html)
   Matches the brand of index.html — orange/teal on light.
   ───────────────────────────────────────────────────────────── */

:root {
    --ink: #ffffff;
    --paper: #0a0e17;
    --accent: #e85d26;
    --accent-glow: #ff7a45;
    --slate: #e2e8f0;
    --mist: #4a5568;
    --teal: #1a9e8f;
    --teal-soft: #e0f5f2;
    --deep: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--ink);
    color: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

a:hover {
    text-decoration: underline;
}

/* ─── NAV ─── */
nav {
    position: relative;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--glass-border);
    animation: fadeDown 0.8s ease both;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(10, 14, 23, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--paper);
    text-decoration: none;
}

.nav-links a.current {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 93, 38, 0.3);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-cta:hover {
    text-decoration: none !important;
    box-shadow: 0 8px 30px rgba(232, 93, 38, 0.3);
}

/* ─── PAGE HERO ─── */
.page-hero {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--deep);
}

.page-hero .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-hero .eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--paper);
}

.page-hero p.lead {
    font-size: 1.05rem;
    color: rgba(10, 14, 23, 0.6);
    font-weight: 300;
    max-width: 640px;
    margin-top: 1rem;
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.meta-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: rgba(10, 14, 23, 0.6);
}

.meta-badge.accent {
    color: var(--accent);
    border-color: rgba(232, 93, 38, 0.25);
}

.meta-badge.teal {
    color: var(--teal);
    border-color: rgba(26, 158, 143, 0.25);
}

/* ─── DOCUMENT BODY ─── */
.doc {
    padding: 3rem 0 4rem;
}

.doc-intro {
    font-size: 1rem;
    color: rgba(10, 14, 23, 0.7);
    font-weight: 300;
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Table of contents */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.toc a {
    font-size: 0.78rem;
    color: rgba(10, 14, 23, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: all 0.25s;
}

.toc a:hover {
    color: var(--accent);
    border-color: rgba(232, 93, 38, 0.3);
    text-decoration: none;
}

/* Sections */
.doc-section {
    scroll-margin-top: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
}

.doc-section > .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.doc-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.45rem;
    color: var(--paper);
    margin: 0.15rem 0 1rem;
    letter-spacing: -0.01em;
}

.doc-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--paper);
    margin: 1.1rem 0 0.4rem;
}

.doc-section p {
    font-size: 0.92rem;
    color: rgba(10, 14, 23, 0.7);
    font-weight: 300;
    margin-bottom: 0.85rem;
}

.doc-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.doc-section ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: rgba(10, 14, 23, 0.7);
    font-weight: 300;
}

.doc-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
}

.doc-section ul.ban li::before {
    content: '✕';
    color: #d14343;
}

.doc-section strong {
    color: var(--paper);
    font-weight: 600;
}

/* Callout note */
.note {
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin: 0.5rem 0 0.85rem;
    border: 1px solid rgba(232, 93, 38, 0.25);
    background: rgba(232, 93, 38, 0.06);
}

.note .note-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.note.teal {
    border-color: rgba(26, 158, 143, 0.25);
    background: rgba(26, 158, 143, 0.06);
}

.note.teal .note-title {
    color: var(--teal);
}

.note p {
    font-size: 0.82rem !important;
    margin: 0 !important;
}

/* Two-column mini cards (rights, roles, providers, security) */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.mini-card {
    background: var(--deep);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.mini-card .t {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 0.2rem;
}

.mini-card .d {
    font-size: 0.78rem;
    color: rgba(10, 14, 23, 0.6);
    font-weight: 300;
    line-height: 1.5;
}

/* Definition / labelled rows (retention, billing, general) */
.def-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--deep);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
}

.def-row .tag {
    flex-shrink: 0;
    min-width: 90px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(232, 93, 38, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    text-align: center;
}

.def-row .body {
    font-size: 0.85rem;
    color: rgba(10, 14, 23, 0.7);
    font-weight: 300;
}

.def-row .body strong {
    display: block;
    color: var(--paper);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-btn:hover {
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(232, 93, 38, 0.3);
}

/* ─── FOOTER ─── */
footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--deep);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
}

footer p {
    font-size: 0.75rem;
    color: rgba(10, 14, 23, 0.45);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(10, 14, 23, 0.5);
    font-weight: 400;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.75rem !important;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .doc-section {
        padding: 1.4rem 1.25rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}
