/* === Legal Page specific styles === */

/* Hero Section (Reused styles from videos-hero) */
.legal-hero {
    background-color: var(--deep-navy);
    color: var(--ivory);
    margin-top: 65px;
    /* Start below navbar */
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, rgba(13, 27, 62, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.legal-hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    color: var(--sovereign-gold);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.legal-hero h1 {
    color: var(--ivory);
    font-size: 3.2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.legal-hero p {
    font-size: 1rem;
    color: var(--soft-slate);
    line-height: 1.6;
    margin: 0;
}

/* Layout for Sidebar and Content */
.legal-layout {
    background-color: var(--ivory);
    padding: 4rem;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
}

/* Sidebar */
.legal-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-btn {
    background-color: #fff;
    border: 1px solid rgba(13, 27, 62, 0.1);
    color: var(--midnight-navy);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-btn i {
    font-size: 0.9rem;
    color: var(--sovereign-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-btn:hover {
    border-color: var(--sovereign-gold);
    color: var(--sovereign-gold);
}

.sidebar-btn.active {
    background-color: var(--midnight-navy);
    color: var(--ivory);
    border-color: var(--midnight-navy);
}

.sidebar-btn.active i {
    opacity: 1;
}

/* Content Area */
.legal-content-area {
    flex: 1;
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    min-height: 500px;
}

.legal-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.legal-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-tab-content h2 {
    color: var(--midnight-navy);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-family: 'Inter', sans-serif;
}

.legal-tab-content h3 {
    color: var(--midnight-navy);
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-family: 'Inter', sans-serif;
}

.legal-tab-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.legal-tab-content ul {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.legal-tab-content li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .legal-container {
        flex-direction: column;
        gap: 2rem;
    }

    .legal-sidebar {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 0.8rem 1rem;
        min-width: 150px;
    }

    .sidebar-btn i {
        display: none;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 4rem 1rem;
    }

    .legal-hero h1 {
        font-size: 2.2rem;
    }

    .legal-layout {
        padding: 2rem 1rem;
    }

    .legal-content-area {
        padding: 2rem 1.5rem;
    }

    .sidebar-btn {
        min-width: 100%;
    }
}

/* Hyperlink Styling inside Legal Content */
.legal-tab-content a {
    color: var(--sovereign-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-tab-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}