/* Modern Legal Pages Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Legal Page Header */
.legal-page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.legal-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.legal-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.legal-page-header .subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Main Container */
.legal-container {
    max-width: 1000px;
    margin: -2rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.legal-content-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

/* Typography */
.legal-intro {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.legal-intro p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

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

/* Section Styling */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.legal-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 2rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.legal-section ul, .legal-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Highlight Boxes */
.legal-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.legal-highlight p,
.legal-highlight strong {
    color: #92400e;
    margin: 0;
    font-weight: 600;
}

.legal-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.legal-info-box h4 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.legal-info-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* Table Styling */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.legal-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-blue) 100%);
}

.legal-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.legal-table tbody tr:hover {
    background: var(--bg-light);
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

/* Contact Card */
.legal-contact-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.legal-contact-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legal-contact-item:last-child {
    margin-bottom: 0;
}

.legal-contact-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.legal-contact-details strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.legal-contact-details span,
.legal-contact-details a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer-title {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.legal-footer-links a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page-header {
        padding: 3rem 0 2rem;
    }
    
    .legal-page-header h1 {
        font-size: 2rem;
    }
    
    .legal-content-card {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h2::before {
        height: 1.5rem;
    }
    
    .legal-footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-table {
        font-size: 0.875rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-page-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-content-card {
        padding: 1.5rem 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .legal-page-header {
        background: none;
        color: black;
    }
    
    .legal-page-header h1 {
        color: black;
    }
    
    .legal-footer-links {
        display: none;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}
