/* Legal Pages Specific Styles (Privacy Policy & Terms of Service) */

.page-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.05), rgba(255, 0, 255, 0.05));
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-hero .hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Legal Content */
.legal-content {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Intro Section */
.legal-intro {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-purple);
}

.legal-intro h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.legal-intro p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-intro p:last-child {
    margin-bottom: 0;
}

/* Table of Contents */
.toc {
    margin: 40px 0;
    padding: 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.toc h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-purple);
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.toc a:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

/* Legal Sections */
.legal-section {
    margin: 48px 0;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-purple);
    scroll-margin-top: 100px; /* For anchor links with fixed nav */
}

.legal-section h3 {
    font-size: 22px;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.legal-section h4 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0 24px 24px;
    color: var(--text-medium);
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 12px;
}

.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-purple);
    text-decoration: underline;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--primary-magenta);
}

.legal-section em {
    font-style: italic;
    color: var(--text-light);
}

/* Legal Note Box */
.legal-note {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(75, 0, 130, 0.05);
    border-left: 4px solid var(--primary-purple);
    border-radius: 8px;
}

.legal-note strong {
    color: var(--primary-purple);
    display: block;
    margin-bottom: 8px;
}

.legal-note p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Contact Info Box */
.contact-info-box {
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.contact-info-box p {
    margin-bottom: 12px;
    font-size: 16px;
}

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

.contact-info-box strong {
    color: var(--text-dark);
    display: inline-block;
    min-width: 140px;
}

/* Bottom Note */
.legal-bottom-note {
    margin-top: 60px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.05), rgba(255, 0, 255, 0.05));
    border-radius: 12px;
    text-align: center;
}

.legal-bottom-note h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.legal-bottom-note p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.legal-bottom-note p:last-child {
    font-style: italic;
    color: var(--primary-purple);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }
    
    .page-hero .hero-subtitle {
        font-size: 16px;
    }
    
    .legal-wrapper {
        padding: 0 16px;
    }
    
    .legal-intro {
        padding: 20px;
    }
    
    .toc {
        padding: 16px;
    }
    
    .legal-section h2 {
        font-size: 26px;
    }
    
    .legal-section h3 {
        font-size: 20px;
    }
    
    .legal-section ul,
    .legal-section ol {
        margin-left: 16px;
    }
    
    .contact-info-box strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .legal-bottom-note {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .toc {
        display: none;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-section h2 {
        page-break-after: avoid;
    }
}