/* ================================
   LEGAL PAGES STYLES
   Privacy Policy & Terms of Use
   ================================ */

/* Legal Page Container */
.legal-page {
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 2rem 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, #e1e2eb 0%, #6745b3 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
    margin-top: 5em;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white;
}

.legal-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white;
}

.legal-updated {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    margin: 0;
        color: white;
}

/* Legal Content */
.legal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Sections */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.legal-section h3 {
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.legal-section p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul, .legal-section ol {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Practice Info Boxes */
.practice-info {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #6366f1;
}

.practice-info h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

.practice-info ul {
    margin-bottom: 0;
}

.practice-info li {
    color: #334155;
    margin-bottom: 0.5rem;
}

/* Emergency Notice */
.emergency-notice {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.emergency-notice p {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 1rem;
}

.emergency-notice p:first-child {
    font-size: 1.125rem;
    color: #b45309;
}

.emergency-notice ul {
    color: #92400e;
    margin-bottom: 0;
}

.emergency-notice li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #10b981;
}

.contact-info p {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-info strong {
    color: #059669;
    font-weight: 600;
}

/* Links */
.legal-content a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-content a:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 1rem 0;
    }
    
    .legal-container {
        padding: 0 0.5rem;
    }
    
    .legal-header {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1.125rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h2::before {
        left: -0.75rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .practice-info,
    .emergency-notice,
    .contact-info {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 1.5rem 1rem;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.375rem;
    }
    
    .practice-info,
    .emergency-notice,
    .contact-info {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        background: white;
        padding: 0;
    }
    
    .legal-header {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
        border: 2px solid #333;
    }
    
    .legal-content {
        box-shadow: none !important;
        border: none !important;
    }
    
    .legal-section h2::before {
        display: none;
    }
    
    .practice-info,
    .emergency-notice,
    .contact-info {
        border: 1px solid #333 !important;
        background: white !important;
    }
    
    .legal-content a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Accessibility Improvements */
.legal-content:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
}

.legal-section h2:target {
    background: #fef3c7;
    padding: 0.5rem;
    border-radius: 8px;
    margin: -0.5rem;
}

/* Smooth Scrolling for Internal Links */
html {
    scroll-behavior: smooth;
}