/* =====================================================================
   OK LEGAL PAGE STYLES
   Shared by page-affiliate-disclosure.php, page-privacy-policy.php,
   page-terms-and-conditions.php. Loaded conditionally via
   ok_enqueue_legal_styles() in functions.php.

   Long-form prose styling for legal content. Uses existing brand
   variables with hard-coded fallbacks.
   ===================================================================== */

.ok-legal-section {
    padding: 56px 0 80px;
}

.ok-legal-container {
    max-width: 760px;
    margin: 0 auto;
}

/* --- Review-before-publishing callout (high-visibility yellow) ------- */

.ok-legal-review-note {
    border: 1px solid rgba(255, 196, 0, 0.5);
    border-left: 4px solid #FFC400;
    background: rgba(255, 196, 0, 0.08);
    padding: 18px 22px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ok-text, #FFFFFF);
    margin: 0 0 28px;
}

.ok-legal-review-note strong {
    color: #FFC400;
    font-weight: 600;
}

/* --- Updated-date line ---------------------------------------------- */

.ok-legal-updated {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    color: var(--ok-text, #FFFFFF);
    opacity: 0.6;
    margin: 0 0 36px;
    font-style: italic;
}

/* --- Legal prose typography ----------------------------------------- */

.ok-legal-container h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 44px 0 14px;
    color: var(--ok-text, #FFFFFF);
}

.ok-legal-container h2:first-of-type {
    margin-top: 0;
}

.ok-legal-container h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 32px 0 10px;
    color: var(--ok-text, #FFFFFF);
}

.ok-legal-container p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--ok-text, #FFFFFF);
    margin: 0 0 16px;
}

.ok-legal-container p strong {
    color: var(--ok-red, #E63946);
    font-weight: 600;
}

.ok-legal-container a {
    color: var(--ok-red, #E63946);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ok-legal-container a:hover {
    color: #FFFFFF;
    background-color: var(--ok-red, #E63946);
    text-decoration: none;
}

.ok-legal-container ul,
.ok-legal-container ol {
    padding-left: 26px;
    margin: 12px 0 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ok-text, #FFFFFF);
}

.ok-legal-container ul li,
.ok-legal-container ol li {
    margin: 8px 0;
}

.ok-legal-footer-note {
    margin-top: 36px !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem !important;
    opacity: 0.7;
}

/* --- Light mode override --------------------------------------------- */

html[data-theme='light'] .ok-legal-container h2,
html[data-theme='light'] .ok-legal-container h3,
html[data-theme='light'] .ok-legal-container p,
html[data-theme='light'] .ok-legal-container ul,
html[data-theme='light'] .ok-legal-container ol,
html[data-theme='light'] .ok-legal-review-note,
html[data-theme='light'] .ok-legal-updated {
    color: #1A1A2E;
}

html[data-theme='light'] .ok-legal-updated {
    opacity: 0.65;
}

html[data-theme='light'] .ok-legal-footer-note {
    border-top-color: rgba(26, 26, 46, 0.12);
}

/* --- Mobile responsive ---------------------------------------------- */

@media (max-width: 720px) {
    .ok-legal-section {
        padding: 36px 0 60px;
    }
    .ok-legal-container h2 {
        font-size: 1.3rem;
    }
}
