/* ===========================
   Legal Pages Styles
   =========================== */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-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 1200 120"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.legal-header .container {
    position: relative;
    z-index: 1;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.legal-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Tabs */
.legal-tabs {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 2px solid var(--light-bg);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--light-bg);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--white);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Legal Content */
.legal-content {
    padding: 5rem 0;
    background: var(--light-bg);
    min-height: calc(100vh - 400px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Document */
.legal-document {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.legal-document h2 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1.5rem;
}

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

/* Legal Sections */
.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-content {
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    line-height: 1.8;
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-section p {
    margin: 0.75rem 0;
    line-height: 1.8;
    color: var(--dark-text);
}

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

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(0, 61, 165, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--dark-text);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 6rem 0 3rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 1rem;
        border-bottom: 1px solid var(--light-bg);
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid var(--light-bg);
        border-left-color: var(--primary-color);
    }
    
    .tab-btn::after {
        bottom: 0;
        left: -3px;
        right: auto;
        width: 3px;
        height: 100%;
        transform: scaleY(0);
    }
    
    .tab-btn.active::after {
        transform: scaleY(1);
    }
    
    .legal-content {
        padding: 2rem 0;
    }
    
    .legal-document {
        padding: 2rem 1.5rem;
    }
    
    .legal-document h2 {
        font-size: 1.8rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .section-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.6rem;
    }
    
    .legal-document {
        padding: 1.5rem 1rem;
    }
    
    .legal-document h2 {
        font-size: 1.5rem;
        padding-left: 1rem;
    }
    
    .last-updated {
        padding-left: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .language-toggle,
    .legal-tabs,
    .footer {
        display: none;
    }
    
    .legal-header {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .legal-content {
        background: white;
    }
    
    .tab-content {
        display: block !important;
        page-break-before: always;
    }
    
    .tab-content:first-child {
        page-break-before: auto;
    }
}
