/* ======================================
   EMNEN MEDIA — LEGAL PAGES STYLESHEET
   Privacy Policy & Terms of Service
   ====================================== */

/* ===== LEGAL HERO ===== */
.legal-hero {
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--glass-border);
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.04) 0%, transparent 60%),
        var(--bg-deep);
}

.legal-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-hero-date {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ===== LEGAL CONTENT LAYOUT ===== */
.legal-content {
    padding: 80px 0 100px;
}

.legal-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 80px;
    align-items: flex-start;
}

/* ===== LEGAL BODY ===== */
.legal-body {
    max-width: 720px;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.legal-section h3 {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 28px;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.legal-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.legal-section ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-core);
    opacity: 0.6;
}

.legal-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-section a {
    color: var(--gold-core);
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
    transition: border-color 0.25s, color 0.25s;
}

.legal-section a:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

/* ===== CONTACT CARD ===== */
.legal-contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 20px;
}

.legal-contact-card p {
    margin-bottom: 6px;
    font-size: 15px;
}

.legal-contact-card p:last-child {
    margin-bottom: 0;
}

.legal-contact-card strong {
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 700;
}

/* ===== SIDEBAR TOC ===== */
.legal-sidebar {
    position: sticky;
    top: 100px;
}

.legal-toc {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.legal-toc h4 {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.legal-toc ol li {
    counter-increment: toc;
    margin-bottom: 0;
}

.legal-toc ol li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: color 0.25s, padding-left 0.25s;
}

.legal-toc ol li a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-dark);
    opacity: 0.5;
    min-width: 20px;
}

.legal-toc ol li:last-child a {
    border-bottom: none;
}

.legal-toc ol li a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-sidebar {
        position: static;
        order: -1;
    }

    .legal-toc {
        padding: 20px;
    }

    .legal-toc ol {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 40px;
    }

    .legal-hero-title {
        font-size: 32px;
    }

    .legal-content {
        padding: 40px 0 60px;
    }

    .legal-toc ol {
        grid-template-columns: 1fr;
    }

    .legal-section h2 {
        font-size: 22px;
    }
}