/* ============================================
   LEGISLATION PAGE - CLEAN PROFESSIONAL DESIGN
   ============================================ */

/* Page wrapper */
.legislation-page {
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section */
.legislation-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 160px 20px 60px;
    margin: 0;
    text-align: center;
    margin-top: -100px;
}

.legislation-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legislation-hero .page-title {
    color: white !important;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    line-height: 1.3;
    text-align: center;
    display: block;
}

.legislation-hero .page-title i {
    color: #ffd700;
    margin-right: 0.5rem;
    font-size: 2rem;
    vertical-align: middle;
}

.legislation-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

/* Main container */
.legislation-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Quick Navigation */
.legislation-nav {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    position: static !important;
}

.legislation-nav h3 {
    color: #2c3e50;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-nav-list li a {
    display: block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.quick-nav-list li a:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.quick-nav-list li a i {
    font-size: 0.75rem;
    margin-right: 6px;
    opacity: 0.7;
}

/* Content sections */
.content-section {
    margin-bottom: 48px;
}

/* Section header */
.section-header {
    border-bottom: 2px solid #dc3545;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #dc3545;
    font-size: 1.25rem;
}

/* Section content */
.section-content {
    color: #495057;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Law cards */
.legal-framework {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.law-card {
    background: #f8f9fa;
    border-left: 3px solid #dc3545;
    padding: 20px;
    border-radius: 4px;
}

.law-card h3 {
    color: #dc3545;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.law-reference {
    background: white;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 0.9rem;
}

.law-reference strong {
    color: #dc3545;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.law-reference a {
    color: #0066cc;
    text-decoration: none;
}

.law-reference a:hover {
    text-decoration: underline;
}

/* Quote highlights */
.law-highlight {
    background: #fffbf0;
    border-left: 3px solid #ffc107;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.law-highlight i {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.law-highlight blockquote {
    margin: 8px 0 0 0;
    font-style: italic;
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Info boxes */
.info-box {
    padding: 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 3px solid;
    font-size: 0.95rem;
}

.info-box i {
    margin-right: 8px;
}

.info-box h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
}

.info-box.info {
    background: #e7f3ff;
    border-left-color: #0066cc;
    color: #004085;
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.info-box.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.info-box.danger {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Lists */
.section-content ul {
    list-style: none;
    padding-left: 0;
}

.section-content ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
}

.section-content ul li:before {
    content: '•';
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

/* Entity cards */
.entity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.entity-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
}

.entity-card h3 {
    color: #2c3e50;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.entity-card ul li {
    font-size: 0.95rem;
}

/* Exemption items */
.exemptions-section {
    margin-top: 32px;
}

.exemptions-section h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.exemption-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exemption-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.exemption-item i {
    color: #dc3545;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.exemption-item h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.exemption-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Module cards */
.modules-list {
    margin-top: 24px;
}

.module {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
}

.module h4 {
    color: #dc3545;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.module ul li {
    font-size: 0.95rem;
}

/* Duration card */
.duration-info {
    margin: 24px 0;
}

.duration-card {
    background: linear-gradient(135deg, #102a43 0%, #1a3a5c 100%);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.duration-card i {
    color: white;
    font-size: 3rem;
    opacity: 0.9;
}

.duration-card h3 {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration-card .duration-number {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1;
}

.duration-card .duration-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

/* Modality cards */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

.modality-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
}

.modality-card h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.modality-card ul li {
    font-size: 0.9rem;
}

/* CTA section */
.final-cta {
    background: #ffffff;
    padding: 48px 20px;
    margin: 48px 0 0 0;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #7c5ccc 0%, #5e45b3 100%);
    border: none;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(124, 92, 204, 0.2);
}

.final-cta h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.final-cta .cta-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 32px;
    font-weight: 400;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.cta-features .feature i {
    color: #ffd700;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Legal sources */
.legal-sources {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-top: 48px;
    font-size: 0.9rem;
}

.legal-sources h3 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.legal-sources p {
    margin: 0;
    line-height: 1.8;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .legislation-hero {
        padding: 140px 15px 40px;
    }
    
    .legislation-hero .page-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .legislation-hero .page-title i {
        font-size: 1.5rem;
    }
    
    .legislation-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .quick-nav-list {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .final-cta {
        padding: 32px 20px;
        margin: 32px 0 0 0;
    }
    
    .final-cta h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
