/* ==============================================
   LEGAL PAGES SHARED STYLES — LIGHT THEME
   Privacy Policy & Terms & Conditions
   Eduooz Academy
   ============================================== */

:root {
    --brand-purple: #5b21b6;
    --brand-magenta: #c026d3;
    --brand-cyan: #06b6d4;
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-muted-2: #64748b;
    --glass-border: #e2e8f0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: #f8fafc;
    overflow-x: clip;
    min-height: 100vh;
}

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

.g-reveal { visibility: hidden; }

/* ── Color Mesh Background ─────────────────── */
.color-mesh {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -2;
    filter: blur(50px);
    opacity: 0.06;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: drift 15s infinite alternate ease-in-out;
}

.purple-blob {
    width: 50vw; height: 50vw;
    background: var(--brand-purple);
    top: -10%; left: -10%;
}

.cyan-blob {
    width: 40vw; height: 40vw;
    background: var(--brand-cyan);
    bottom: 0; right: -10%;
    animation-delay: -5s;
}

.magenta-blob {
    width: 45vw; height: 45vw;
    background: var(--brand-magenta);
    top: 30%; left: 30%;
    animation-delay: -10s;
}

/* ── Hero Meta (date + brand line) ───────────── */
.legal-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.96rem;
    color: var(--text-muted-2);
    margin-top: 20px;
}

.legal-hero-meta i {
    color: var(--brand-purple);
    font-size: 0.9rem;
}

.meta-sep { opacity: 0.35; }

/* ── Main Body Section ──────────────────────── */
.legal-body-section {
    position: relative;
    z-index: 10;
    padding: 80px 0 130px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 52px;
    align-items: start;
}

/* ── TOC Sidebar ────────────────────────────── */
.legal-toc-col {
    position: relative;
    top: 0;
}

.toc-sticky-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.toc-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
}

.toc-label i {
    color: var(--brand-purple);
    font-size: 0.82rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    display: block;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted-2);
    text-decoration: none;
    transition: all 0.22s ease;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-link:hover {
    color: #6d28d9;
    background: rgba(91, 33, 182, 0.06);
    border-left-color: var(--brand-purple);
    padding-left: 17px;
}

.toc-link.active {
    color: #6d28d9;
    background: rgba(91, 33, 182, 0.09);
    border-left-color: var(--brand-purple);
    font-weight: 700;
    padding-left: 17px;
}

/* ── Main Content ───────────────────────────── */
.legal-main-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Intro block */
.legal-intro-block {
    background: rgba(91, 33, 182, 0.04);
    border: 1px solid rgba(91, 33, 182, 0.15);
    border-radius: 20px;
    padding: 34px 38px;
}

.legal-intro-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}

.legal-intro-block p:last-child { margin-bottom: 0; }
.legal-intro-block strong { color: var(--text-main); }

/* Legal section cards */
.legal-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 38px;
    scroll-margin-top: 110px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.section-num {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d28d9;
    background: rgba(91, 33, 182, 0.07);
    border: 1px solid rgba(91, 33, 182, 0.18);
    border-radius: 8px;
    padding: 5px 12px;
    flex-shrink: 0;
    font-family: var(--font-main);
}

.legal-section h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.section-body p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}

.section-body p:last-child { margin-bottom: 0; }

.section-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px;
}

.section-body strong { color: var(--text-main); }

/* Lists */
.section-body ul,
.section-body ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.section-body ul li,
.section-body ol li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.section-body ul li::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-purple);
    flex-shrink: 0;
    margin-top: 9px;
}

.section-body ol {
    counter-reset: ol-count;
}

.section-body ol li {
    counter-increment: ol-count;
}

.section-body ol li::before {
    content: counter(ol-count) ".";
    font-size: 0.88rem;
    font-weight: 800;
    color: #6d28d9;
    flex-shrink: 0;
    min-width: 20px;
    margin-top: 2px;
}

.section-body a {
    color: #6d28d9;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.section-body a:hover { opacity: 0.75; }

/* Highlight / callout box — default: purple (Privacy Policy) */
.legal-highlight {
    background: rgba(91, 33, 182, 0.04);
    border: 1px solid rgba(91, 33, 182, 0.14);
    border-left: 3px solid var(--brand-purple);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px 0;
}

/* Terms & Conditions — cyan highlight override */
body.tc-page .legal-highlight {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-left: 3px solid var(--brand-cyan);
}

.legal-highlight p {
    margin-bottom: 0 !important;
    color: #475569 !important;
    font-size: 1.02rem !important;
}

/* Contact section variant */
.legal-section.contact-section {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.04), rgba(6, 182, 212, 0.04));
    border-color: rgba(91, 33, 182, 0.18);
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}

.contact-detail-item i {
    color: var(--brand-purple);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 6px;
}

.contact-detail-item p {
    font-size: 0.93rem !important;
    color: #475569 !important;
    margin-bottom: 0 !important;
    line-height: 1.55 !important;
    word-break: break-all;
}

.contact-detail-item a {
    color: #6d28d9 !important;
    text-decoration: none !important;
}

.contact-detail-item a:hover {
    text-decoration: underline !important;
}

/* ── Scroll-to-Top ──────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--brand-purple);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(91, 33, 182, 0.5);
    background: #6d28d9;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
    .legal-layout { grid-template-columns: 250px 1fr; gap: 36px; }
}

@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-toc-col {
        position: relative;
        top: auto;
        order: -1;
    }

    .toc-sticky-card {
        max-height: none;
        overflow-y: visible;
    }

    .toc-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .legal-hero { padding: 110px 0 60px; }

    .legal-section { padding: 28px; }

    .legal-intro-block { padding: 26px; }

    .contact-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .toc-nav { grid-template-columns: 1fr; }

    .legal-section h2 { font-size: 1.28rem; }

    .contact-detail-grid { grid-template-columns: 1fr; }

    .scroll-to-top { bottom: 20px; right: 20px; }
}
