/* legal-redesigned-light.css */

/* --- Google Font Import & Root Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Syne:wght@700;800&display=swap');

:root {
    --light-bg: #f8f9fa;
    --panel-bg: #ffffff;
    --sidebar-bg: #0d1b2a;
    --sidebar-text: #e2e8f0;
    --sidebar-text-hover: #ffffff;
    --accent-primary: #007bff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --heading-color: #0d1b2a;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.05);

    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --transition-fast: 0.3s ease;
}

/* --- General Body Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
}

.legal-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--panel-bg);
    box-shadow: 0 10px 40px var(--shadow-color);
    border-radius: 12px;
    overflow: hidden;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-text-hover);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.nav-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 0 1rem;
    padding-left: 0.5rem;
    opacity: 0.5;
}

.nav-links {
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--sidebar-text-hover);
}

.nav-links a.active {
    background: rgba(0, 123, 255, 0.15);
    color: var(--sidebar-text-hover);
    font-weight: 600;
    border-left: 3px solid var(--accent-primary);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 3rem 4rem;
}

.content-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.effective-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.sub-section {
    margin-bottom: 2.5rem;
}

.sub-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sub-section p, .sub-section li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.sub-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.sub-section a {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
}
.sub-section a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .legal-container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    .main-content {
        padding: 2rem;
    }
}
@media (max-width: 576px) {
    .main-content {
        padding: 1.5rem;
    }
    .main-title {
        font-size: 1.8rem;
    }
    .sub-section h2 {
        font-size: 1.3rem;
    }
}
