/* ==========================================================================
   KUSUM FOUNDATION - LEGAL PAGES (PRIVACY POLICY & TERMS) STYLESHEET
   ========================================================================== */

/* --- HERO SECTION FOR LEGAL PAGES --- */
.legal-hero {
    background: linear-gradient(135deg, #06231e 0%, #0d3a33 100%);
    color: var(--text-white, #ffffff);
    padding: 70px 0 50px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(232, 162, 70, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legal-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.legal-breadcrumbs a {
    color: var(--gold-primary, #e8a246);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-breadcrumbs a:hover {
    text-decoration: underline;
}

.legal-breadcrumbs span.separator {
    color: rgba(255, 255, 255, 0.35);
}

.legal-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.legal-badge {
    display: inline-block;
    background-color: rgba(232, 162, 70, 0.15);
    color: var(--gold-primary, #e8a246);
    border: 1px solid rgba(232, 162, 70, 0.3);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- MAIN LEGAL LAYOUT --- */
.legal-main-section {
    background-color: var(--bg-cream, #fbf7ee);
    padding: 60px 0 80px 0;
}

.legal-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* --- STICKY TABLE OF CONTENTS --- */
.legal-sidebar {
    position: sticky;
    top: 90px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-heading {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green, #082924);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(232, 162, 70, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list li a {
    display: block;
    font-size: 0.86rem;
    color: #4a5568;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.toc-list li a:hover,
.toc-list li a.active {
    color: var(--primary-green, #082924);
    background-color: rgba(13, 58, 51, 0.05);
    border-left-color: var(--gold-primary, #e8a246);
    font-weight: 600;
    padding-left: 12px;
}

/* --- LEGAL CONTENT AREA --- */
.legal-content-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-intro-banner {
    background-color: #f4f8f6;
    border-left: 4px solid var(--primary-green, #082924);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 40px;
    font-size: 0.96rem;
    color: #2d4a43;
    line-height: 1.65;
}

.legal-intro-banner strong {
    color: var(--primary-green, #082924);
}

.legal-article-section {
    margin-bottom: 44px;
    scroll-margin-top: 100px;
}

.legal-article-section:last-child {
    margin-bottom: 0;
}

.legal-section-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-green, #082924);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-green, #082924);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-body-text {
    font-size: 0.94rem;
    color: #4a5568;
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-list {
    margin: 14px 0 18px 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-list li {
    font-size: 0.93rem;
    color: #4a5568;
    line-height: 1.65;
    position: relative;
    padding-left: 6px;
}

.legal-list li strong {
    color: #1a202c;
}

.legal-highlight-box {
    background-color: #fbf9f4;
    border: 1px solid rgba(232, 162, 70, 0.35);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #5c4314;
    line-height: 1.6;
}

.legal-highlight-box strong {
    color: #8c5d12;
}

.contact-card-box {
    background-color: #f2f7f5;
    border-radius: 10px;
    padding: 24px;
    margin-top: 18px;
    border: 1px solid #dbebe6;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: #2d4a43;
    margin-bottom: 10px;
}

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

.contact-card-item a {
    color: var(--primary-green, #082924);
    font-weight: 600;
    text-decoration: none;
}

.contact-card-item a:hover {
    color: var(--gold-primary, #e8a246);
    text-decoration: underline;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .legal-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-sidebar {
        position: static;
        top: auto;
    }

    .legal-content-card {
        padding: 32px 24px;
    }

    .legal-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .legal-hero {
        padding: 50px 0 40px 0;
    }

    .legal-title {
        font-size: 1.65rem;
    }

    .legal-content-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .legal-section-title {
        font-size: 1.15rem;
    }

    .legal-intro-banner {
        padding: 16px;
    }
}
