/* Legal Pages Specific Styles */

/* Main Layout */
.legal-page {
    padding: 100px 0 50px;
    background: #f8fafc;
    min-height: 100vh;
}

.legal-page .container {
    max-width: 1000px;
}

/* Header */
.legal-header {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.legal-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Table of Contents */
.table-of-contents {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.table-of-contents h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.table-of-contents li {
    margin: 0;
}

.table-of-contents a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.table-of-contents a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

/* Legal Content */
.legal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.legal-section {
    padding: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

/* Contact Details */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.contact-method h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-method h4 i {
    font-size: 1.2rem;
}

.contact-method p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Response Commitment */
.response-commitment {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.response-commitment h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.response-commitment p {
    margin: 0;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
}

.quick-actions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.action-buttons .btn i {
    font-size: 1.1rem;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Highlight target section */
.legal-section:target {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-left: 4px solid var(--primary-color);
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .quick-actions {
        display: none;
    }
    
    .legal-page {
        padding: 0;
        background: white;
    }
    
    .legal-header,
    .legal-content,
    .table-of-contents {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .table-of-contents a {
        color: #000 !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 80px 0 30px;
    }
    
    .legal-header {
        padding: 2rem 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .table-of-contents {
        padding: 1.5rem;
    }
    
    .table-of-contents ul {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem 1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .quick-actions {
        padding: 1.5rem 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .table-of-contents a,
    .btn {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .legal-header,
    .legal-content,
    .table-of-contents,
    .quick-actions {
        border: 2px solid #000;
    }
    
    .legal-section h2,
    .table-of-contents h2 {
        color: #000;
        -webkit-text-fill-color: #000;
    }
}