/* Legal Pages Styles */

.legal-content {
    padding: 60px 0;
    background: white;
    min-height: 80vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border);
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.legal-sections {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.contact-info p {
    color: white;
    margin-bottom: 8px;
}

.contact-info strong {
    color: white;
    font-weight: 600;
}

/* Table of Contents */
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
}

.toc h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 25px 0;
    box-shadow: var(--shadow-lg);
}

.highlight-box h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Warning boxes */
.warning-box {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.warning-box p {
    color: #92400e;
    margin: 0;
}

/* Info boxes */
.info-box {
    background: #dbeafe;
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.info-box h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.info-box p {
    color: var(--primary-dark);
    margin: 0;
}

/* Print styles */
@media print {
    .legal-content {
        padding: 0;
    }
    
    .legal-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .header,
    .footer {
        display: none;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-content {
        padding: 40px 0;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-intro {
        font-size: 1rem;
    }
    
    .legal-section {
        padding: 15px;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
}
