/* ==========================================================================
   Super Apps - Privacy Legal Document Styling Module
   Theme: High-End Corporate Deep Crimson / Ruby Minimalist
   ========================================================================== */

/* 1. Legal Jumbotron Header */
.privacy-hero {
    padding: 160px 0 60px 0;
    background-color: #1A1A1A;
    border-bottom: 1px solid #2A2A2A;
}

.doc-badge {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.12);
    color: var(--light-red);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.privacy-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
}

.doc-meta {
    font-size: 14px;
    color: var(--text-muted);
}

/* 2. Premium Technical Split Grid Layout System */
.privacy-body-section {
    padding: 60px 0 100px 0;
    background-color: var(--bg-dark);
}

.privacy-split-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

/* 3. Sticky Left Table of Contents Links */
.policy-toc-sidebar {
    position: sticky;
    top: 120px;
}

.toc-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-left: 2px solid #2A2A2A;
    transition: var(--transition-smooth);
}

.toc-link:hover {
    color: var(--text-light);
    border-left-color: #444;
}

.toc-link.active {
    color: var(--primary-red);
    font-weight: 600;
    border-left-color: var(--primary-red);
    background: linear-gradient(90deg, rgba(211, 47, 47, 0.05) 0%, transparent 100%);
}

/* 4. Deep Tech Corporate Typography & Paragraph Spacing */
.policy-text-content {
    max-width: 800px;
}

.policy-block {
    margin-bottom: 56px;
    scroll-margin-top: 120px; /* Offset to prevent titles heading hidden behind fixed headers */
}

.policy-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    border-bottom: 1px solid #1E1E1E;
    padding-bottom: 8px;
}

.policy-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-text-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.policy-text-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.policy-text-content ul li {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.policy-text-content ul li::before {
    content: "▪";
    position: absolute;
    left: 4px;
    color: var(--primary-red);
    font-size: 12px;
}

.policy-text-content a {
    color: var(--light-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.policy-text-content a:hover {
    text-decoration: underline;
}

.policy-text-content code {
    background-color: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-light);
    font-family: monospace;
    font-size: 13px;
}

/* High-priority attention formatting block specifically for SOS rules */
.font-highlight-block {
    background-color: rgba(211, 47, 47, 0.02);
    border: 1px solid #2A1012;
    padding: 32px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid #2A2A2A;
    border-radius: 6px;
    padding: 24px;
    margin-top: 20px;
}

.contact-card p {
    margin-bottom: 8px;
    font-size: 14px;
}
.contact-card p:last-child { margin-bottom: 0; }

.alert-notice-inline {
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-left: 4px solid var(--primary-red);
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 16px 0 24px 0;
}
.alert-notice-inline strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

/* Specific Emergency/Critical Callout Formatting Variant */
.alert-notice-inline.color-emergency {
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-left: 4px solid #FF1744;
}
.alert-notice-inline.color-emergency strong {
    color: #FF5252;
}

/* ==========================================================================
   Responsive Architecture Overrides
   ========================================================================== */

@media (max-width: 992px) {
    .privacy-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .policy-toc-sidebar {
        display: none; /* Safely dismiss side table of contents links on narrow tablets/mobile views */
    }
    
    .privacy-hero h1 { font-size: 32px; }
    .font-highlight-block { padding: 20px; }
}
