/* ==========================================
   LEGAL DOCUMENTS (Privacy Policy & Accessibility)
   Mobile First Strategy
========================================== */

.legal-document {
    /* On mobile, take up full width for readability */
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    padding: var(--space-40) 0 var(--space-20);
    font-family: var(--font-main);
    line-height: 1.8;
}

.legal-document-header {
    margin-bottom: var(--space-32);
    padding-bottom: var(--space-16);
    border-bottom: 2px solid var(--cta-secondary);
    text-align: center;
}

.legal-document-title {
    font-size: var(--fs-heading-2);
    margin-bottom: var(--space-8);
    font-weight: var(--fw-bold);
}

.legal-document-subtitle {
    font-size: var(--fs-h3);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-16);
}

.legal-document-date {
    font-size: var(--fs-body);
}

.legal-document-intro {
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    margin-bottom: var(--space-32);
    background-color: var(--bg-secondary);
    padding: var(--space-16);
    border-radius: 1.2rem;
}

/* Individual sections styling */
.legal-section {
    margin-block: var(--space-48);
    text-align: right;
}

.legal-section-title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-24);
    font-weight: var(--fw-bold);
}

.legal-section h4 {
    font-size: var(--fs-h4);
    margin-top: var(--space-32);
    margin-bottom: var(--space-24);
    font-weight: var(--fw-bold);
}

.legal-section p {
    margin-bottom: var(--space-16);
    margin-top: 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-light);
}

.legal-section ul {
    list-style-type: none; /* Removes default browser bullets */
    padding: 0;
    margin-bottom: var(--space-24);
}

.legal-section ul li {
    position: relative;
    padding-right: var(--space-24); /* RTL padding for custom bullet */
    margin-bottom: var(--space-12);
    font-size: var(--fs-body);
}

/* Custom bullet using CTA brand color */
.legal-section ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--cta-main); 
    font-size: 2rem;
    line-height: 1.4;
}

.legal-section-contact {
    margin-top: var(--space-24);
    padding-inline: var(--space-16);
    padding-block: var(--space-32) var(--space-16);
    background-color: var(--bg-secondary); /* Light background adapted to dark theme */
    border-radius: 0.8rem;
}


/* =========================================
   Tablet Breakpoint (712px and up)
========================================= */
@media (min-width: 712px) {
    .legal-document {
        max-width: 90%; 
        padding: var(--space-52) var(--space-20) var(--space-20);
    }

    .legal-document-header {
        margin-bottom: var(--space-40);
        padding-bottom: var(--space-20);
    }

    .legal-document-intro {
        padding: var(--space-20);
        margin-bottom: var(--space-40);
    }

    .legal-section {
        margin-block: var(--space-56);
    }
    
    .legal-section-contact {
        padding-inline: var(--space-20);
    }
}


/* =========================================
   Desktop Overrides (1200px and up)
========================================= */
@media (min-width: 1200px) {
    .legal-document {
        max-width: 80%; /* Limits the width for optimal reading experience */
        padding: var(--space-64) var(--space-20) var(--space-20);
    }

    .legal-document-header {
        margin-bottom: var(--space-48);
        padding-bottom: var(--space-24);
    }

    .legal-document-intro {
        padding: var(--space-24);
    }

    .legal-section {
        margin-block: var(--space-64);
    }

    .legal-section-title {
        margin-bottom: var(--space-32);
    }

    .legal-section h4 {
        margin-top: var(--space-40);
        margin-bottom: var(--space-32);
    }

    .legal-section-contact {
        padding-inline: var(--space-24);
        padding-block: var(--space-40) var(--space-16);
    }
}