/* ==========================================================================
   Icon7 Redesign — General Conditions page styles
   --------------------------------------------------------------------------
   Scoped under .legal-page so the local .section-title variant (small, ruled)
   never collides with the global decorative .section-title in redesign.css.
   Content is admin-authored via the_content(); we style generic descendants.
   Ported from icon7-general-conditions.html inline <style>.
   ========================================================================== */

/* --- Dynamic ACF hero: restyle the legacy .page__hero__content title ------ */
.legal-page-hero .page__hero__content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* --- Content wrapper ------------------------------------------------------ */
.legal-page .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Admin-authored headings (the_content h2/h3) -> prototype .section-title */
.legal-page .content h2,
.legal-page .content h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(26, 43, 74, 0.1);
}

.legal-page .content h2:first-child,
.legal-page .content h3:first-child {
    margin-top: 0;
}

.legal-page .content p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.legal-page .content ul,
.legal-page .content ol {
    margin: 1rem 0 1rem 1.5rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.9;
}

.legal-page .content li {
    margin-bottom: 0.5rem;
}

.legal-page .content a {
    color: var(--terracotta);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page .content {
        padding: 3rem 1.5rem;
    }
}
