/* ============================================
   Legal Pages Styles
   Privacy Policy & Terms of Service
   ============================================ */

/* Legal Page Layout */
.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 20px;
}

.legal-meta {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-text);
}

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

.legal-section ul {
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-section li strong {
    color: var(--color-text);
}

.legal-section a {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

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

/* Contact Info Box */
.contact-info {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
}

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

/* Active Nav Link */
.nav-links a.active {
    color: var(--color-text);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Important Notices / Callouts */
.legal-notice {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.legal-notice p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* Table of Contents (optional) */
.legal-toc {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 48px;
}

.legal-toc h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.legal-toc ol {
    counter-reset: toc;
    padding-left: 0;
}

.legal-toc li {
    counter-increment: toc;
    padding-left: 0;
    margin-bottom: 8px;
}

.legal-toc li::before {
    content: counter(toc) ".";
    position: static;
    background: none;
    width: auto;
    height: auto;
    margin-right: 8px;
    color: var(--color-primary-light);
    font-weight: 600;
}

.legal-toc a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--color-primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }
    
    .legal-header {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .legal-section {
        margin-bottom: 36px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
    
    .contact-info {
        padding: 20px;
    }
}
