/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */

.legal-pages {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ==========================================================================
   1. HERO HEADER
   ========================================================================== */

.legal-page__hero-section {
    position: relative;
    overflow: hidden;
    /* Removed the 120px padding-bottom that was causing extra space */
}

/* Reusable Calm Teal radial glow */
.legal-page__hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(31, 138, 112, 0.20) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.legal-page__hero {
    position: relative;
    z-index: 1; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 840px; 
    margin: 0 auto;   
    width: 100%;      
}

.legal-page__hero-badge {
    margin-top: 32px;
    margin-bottom: 24px;
}

.legal-page__hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 24px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.legal-page__hero-title em {
    font-style: normal;
    color: var(--color-calm-teal);
}

.legal-page__hero-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    color: var(--color-off-white);
    margin: 0;
    line-height: 1.6;
    max-width: 680px;
}

/* ==========================================================================
   2. CONTENT ARTICLE (Clean Stacked Look)
   ========================================================================== */

.legal-page-article {
    max-width: 840px;
    margin: 0 auto; /* FIX: Removed the -80px negative margin */
    background-color: var(--color-white);
    padding: 64px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 60, 93, 0.08), 0 2px 8px rgba(11, 60, 93, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 10;
}

.legal-page__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(31, 138, 112, 0.08);
    border-radius: 999px;
    margin-bottom: 48px;
}

.legal-page__meta-icon {
    color: var(--color-calm-teal);
    font-size: 14px;
}

.legal-page__last-updated {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-calm-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.legal-page__section {
    margin-bottom: 48px;
}

.legal-page__section-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-trust-blue);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06); 
}

.legal-page__section p {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    color: var(--color-charcoal);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.legal-page__section ul {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none; 
}

.legal-page__section li {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--color-charcoal);
    position: relative;
    padding-left: 28px;
}

.legal-page__section li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-calm-teal);
    opacity: 0.8;
}

.legal-page__section a {
    color: var(--color-calm-teal);
    text-decoration: underline;
    text-decoration-color: rgba(31, 138, 112, 0.4);
    text-underline-offset: 4px;
    font-weight: 500;
    transition: all var(--motion-fast) ease;
}

.legal-page__section a:hover {
    color: #156653; 
    text-decoration-color: #156653;
}

/* ==========================================================================
   3. RESPONSIVE & PRINT SCALING
   ========================================================================== */

@media screen and (max-width: 1023px) {
    .legal-page__hero-title {
        font-size: 44px;
    }
    
    .legal-page-article {
        padding: 48px;
    }
}

@media screen and (max-width: 767px) {
    .legal-page-article {
        /* FIX: Removed negative margin for mobile as well */
        margin: 0 16px; 
        padding: 32px 24px;
    }
}

@media screen and (max-width: 639px) {
    .legal-page__hero-title {
        font-size: 36px;
    }
    
    .legal-page__hero-subtitle {
        font-size: 16px;
    }

    .legal-page__section-title {
        font-size: 22px;
    }
    
    .legal-page__section p,
    .legal-page__section li {
        font-size: 15px;
    }
}

@media print {
    .legal-page__hero-section {
        display: none; 
    }
    
    .legal-page-article {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .legal-page__section-title,
    .legal-page__section p,
    .legal-page__section li {
        color: #000000;
    }
    
    .legal-page__section li::before {
        background-color: #000000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .legal-page__section a {
        color: #000000;
        text-decoration: underline;
    }
}