/* ==========================================
   EDITORIAL PRIVACY PAGE STYLES
   ========================================== */

.legal-page-wrapper {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* 1. Ambient Glow */
.legal-ambient-glow {
    position: fixed;
    top: 20%; right: 10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* 2. Header Styles */
.legal-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.legal-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: #a1a1aa; margin-bottom: 25px;
}
.status-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; }

.legal-title { font-size: clamp(48px, 8vw, 80px); font-weight: 900; letter-spacing: -3px; margin: 0 0 20px 0; line-height: 1; }
.legal-subtitle { font-size: 20px; color: #a1a1aa; line-height: 1.6; letter-spacing: -0.5px; }

/* 3. Grid Layout (Sidebar + Content) */
.legal-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    position: relative;
}

/* 4. Sticky Sidebar (Table of Contents) */
.legal-sidebar {
    position: sticky;
    top: 100px; /* Sticks to the top while scrolling */
    height: max-content;
}

.sidebar-glass {
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.sidebar-title { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: #71717a; margin: 0 0 20px 0; }

.toc-nav { display: flex; flex-direction: column; gap: 15px; }
.toc-link {
    color: #a1a1aa; text-decoration: none; font-size: 15px; font-weight: 500;
    transition: all 0.3s ease; position: relative; padding-left: 15px;
}
.toc-link::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 2px; height: 0%; background: #22d3ee; transition: height 0.3s ease;
}
.toc-link:hover, .toc-link.active { color: #fff; }
.toc-link.active::before { height: 100%; }

/* 5. Content Typography & Spacing */
.legal-content { padding-bottom: 100px; }
.legal-section { margin-bottom: 80px; }

.legal-section h2 {
    font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 25px;
    display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px;
}
.legal-section h2 span { color: #a855f7; font-size: 24px; font-weight: 900; }

.legal-section p { font-size: 18px; color: #d1d5db; line-height: 1.8; margin-bottom: 20px; }

/* 6. Custom Highlight & TLDR Box */
mark { background: rgba(34, 211, 238, 0.15); color: #22d3ee; padding: 2px 6px; border-radius: 4px; }

.tldr-box {
    padding: 20px 25px;
    background: rgba(168, 85, 247, 0.05);
    border-left: 3px solid #a855f7;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
    font-size: 16px; color: #e5e7eb; line-height: 1.6;
}
.tldr-box strong { color: #a855f7; margin-right: 8px; }

/* Responsive */
@media (max-width: 900px) {
    .legal-layout-grid { grid-template-columns: 1fr; gap: 40px; }
    .legal-sidebar { position: relative; top: 0; }
}