/* ==============================================================================
   LEGAL PAGES - Privacy Policy, Terms of Service, Cookie Policy
   ============================================================================== */

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
    padding: 80px 0 60px;
    margin-top: 0;
}

.legal-hero-content {
    max-width: 700px;
}

.legal-hero-content.centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.legal-hero-content.centered .legal-meta {
    justify-content: center;
}

.legal-hero h1 {
    color: #FFFFFF !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.legal-hero .legal-subtitle {
    color: #CBD5E1 !important;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.legal-hero .legal-date {
    color: #94A3B8 !important;
    font-size: 1rem;
    margin-top: 8px;
}

/* Contact Details */
.contact-details {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    margin-top: 16px;
}

.contact-details p {
    margin-bottom: 12px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    color: #3B82F6;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Clean section headers without numbers */
.legal-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.styled-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #3B82F6;
    border-radius: 50%;
}

.styled-list.check-list li::before {
    content: '✓';
    background: none;
    color: #10B981;
    font-weight: 700;
    top: 0;
    width: auto;
    height: auto;
}

/* Legal Content Section */
.legal-content-section {
    padding: 64px 0 80px;
    background: var(--bg-secondary);
}

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

/* Table of Contents Sidebar */
.legal-sidebar {
    position: sticky;
    top: 120px;
}

.toc-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.toc-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

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

.toc-link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: block;
}

.toc-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Legal Main Content */
.legal-main {
    min-width: 0;
}

.legal-article {
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.legal-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Legal Pages Responsive */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        order: -1;
    }

    .toc-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 60px 0 48px;
    }

    .legal-hero h1 {
        font-size: 2.25rem;
    }

    .legal-article {
        padding: 32px 24px;
    }

}

@media (max-width: 576px) {
    .legal-hero {
        padding: 48px 0 40px;
    }

    .legal-hero h1 {
        font-size: 1.875rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-content-section {
        padding: 40px 0 60px;
    }

    .legal-article {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
