/* Shared presentation for editorial, policy, and contact pages. */
body.static-info-page {
    --static-surface: #121d30;
    --static-surface-soft: #17263d;
    --static-border: #2b4262;
    --static-text: #c7d2e5;
    --static-muted: #91a0b9;
    --static-blue: #27b6ff;
    --static-pink: #ff4f9a;
    --static-green: #42d99b;
    --static-amber: #ffc857;
}

.static-info-page .main-content {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding-top: 28px;
    padding-bottom: 48px;
}

.static-info-page .main-content :is(h1, h2, h3) {
    letter-spacing: 0 !important;
    line-height: 1.25;
    text-wrap: balance;
}

.static-info-page .main-content p,
.static-info-page .main-content li {
    color: var(--static-text) !important;
    line-height: 1.75 !important;
}

.static-info-page .main-content a {
    text-underline-offset: 3px;
}

.static-info-page .section-header {
    margin: 0 0 26px !important;
    padding: 0 0 18px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--static-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.static-info-page .section-title {
    margin: 0 !important;
    color: #f5f8ff !important;
    font-size: clamp(1.55rem, 3vw, 2rem) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.static-info-page .section-title i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-right: 10px;
    color: #06101d !important;
    background: var(--static-blue) !important;
    border-radius: 8px;
    text-shadow: none !important;
}

/* Older policy pages become clean, readable documents instead of one large card. */
.static-page-privacy .main-content > div:nth-child(2),
.static-page-cookie .main-content > div:nth-child(2),
.static-page-terms .main-content > div:nth-child(2) {
    width: min(100%, 940px) !important;
    max-width: 940px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.static-page-privacy .main-content > div:nth-child(2) > p:first-child,
.static-page-cookie .main-content > div:nth-child(2) > p:first-child,
.static-page-terms .main-content > div:nth-child(2) > p:first-child {
    margin: 0 0 10px !important;
    padding: 18px 20px !important;
    color: var(--static-text) !important;
    background: var(--static-surface-soft) !important;
    border-left: 4px solid var(--static-green) !important;
    border-radius: 0 8px 8px 0 !important;
}

.static-page-privacy .main-content > div:nth-child(2) > div,
.static-page-cookie .main-content > div:nth-child(2) > div,
.static-page-terms .main-content > div:nth-child(2) > div {
    margin: 0 !important;
    padding: 24px 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--static-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.static-page-privacy .main-content h2,
.static-page-cookie .main-content h2,
.static-page-terms .main-content h2 {
    margin: 0 0 12px !important;
    color: var(--static-blue) !important;
    font-size: 1.18rem !important;
}

.static-page-privacy .main-content h3,
.static-page-cookie .main-content h3,
.static-page-terms .main-content h3 {
    color: var(--static-amber) !important;
    font-size: 1rem !important;
}

.static-page-privacy .main-content li::marker,
.static-page-cookie .main-content li::marker,
.static-page-terms .main-content li::marker {
    color: var(--static-pink);
}

/* About page: full-width content bands with compact repeated-item cards. */
.static-page-about .main-content > div:nth-child(2) {
    margin: 0 0 24px !important;
    padding: 28px clamp(20px, 4vw, 42px) !important;
    text-align: left !important;
    background: var(--static-surface-soft) !important;
    border: 0 !important;
    border-left: 4px solid var(--static-pink) !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
}

.static-page-about .main-content > div:nth-child(2) > div:first-child {
    display: none !important;
}

.static-page-about .main-content > div:nth-child(2) h2 {
    margin-bottom: 10px !important;
    color: #f5f8ff !important;
    font-size: clamp(1.45rem, 3vw, 2rem) !important;
}

.static-page-about .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}

.static-page-about .stat-card {
    min-height: 112px;
    padding: 18px !important;
    background: var(--static-surface) !important;
    border: 1px solid var(--static-border) !important;
    border-top: 3px solid var(--static-blue) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.static-page-about .stat-card:nth-child(2) { border-top-color: var(--static-pink) !important; }
.static-page-about .stat-card:nth-child(3) { border-top-color: var(--static-green) !important; }
.static-page-about .stat-card:nth-child(4) { border-top-color: var(--static-amber) !important; }

.static-page-about .main-content > div:nth-child(n+4) {
    margin: 0 !important;
    padding: 26px 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--static-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.static-page-about .main-content > div:nth-child(n+4) > :is(h2, h3) {
    margin: 0 0 14px !important;
    color: var(--static-blue) !important;
    font-size: 1.2rem !important;
    text-shadow: none !important;
}

.static-page-about .main-content > div:nth-child(6) > div > div {
    padding: 18px !important;
    background: var(--static-surface) !important;
    border: 1px solid var(--static-border) !important;
    border-radius: 8px !important;
}

.static-page-about .main-content > div:nth-child(7) a {
    background: var(--static-surface) !important;
    border-color: var(--static-border) !important;
    border-radius: 7px !important;
}

.static-page-about .main-content > div:nth-child(8) {
    text-align: left !important;
    background: var(--static-surface-soft) !important;
    border-left: 4px solid var(--static-green) !important;
    padding-left: 22px !important;
}

/* Already structured pages share the same dimensions and restrained surfaces. */
.static-page-contact .contact-page,
.static-page-editor .editor-profile-page,
.static-page-parents .parent-info-page {
    width: min(100%, 1080px);
    margin-inline: auto;
}

.static-page-contact :is(.contact-hero, .contact-guide, .contact-form-panel, .contact-assurance),
.static-page-editor :is(.editor-profile-hero, .editor-profile-section),
.static-page-parents :is(.parent-info-intro, .parent-info-section) {
    border-radius: 8px !important;
    box-shadow: none !important;
}

.static-page-contact .contact-hero,
.static-page-editor .editor-profile-hero,
.static-page-parents .parent-info-intro {
    background: var(--static-surface-soft) !important;
    border-color: var(--static-border) !important;
}

.static-page-contact .contact-submit,
.static-page-contact .contact-email-link,
.static-page-editor .editor-contact-link {
    min-height: 46px;
    border-radius: 7px !important;
}

/* Shared CTA language for editorial and legal pages. */
.static-info-page :is(
    .contact-submit,
    .contact-email-link,
    .editor-contact-link,
    .guide-links a,
    .main-content .btn
) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px !important;
    color: #f7fbff !important;
    background: var(--static-surface-soft) !important;
    border: 1px solid var(--static-border) !important;
    border-radius: 7px !important;
    box-shadow: 0 6px 16px rgba(2, 8, 20, 0.2) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition-property: transform, background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.static-info-page :is(
    .contact-submit,
    .contact-email-link,
    .editor-contact-link,
    .guide-links a,
    .main-content .btn
):hover {
    background: #20324e !important;
    border-color: var(--static-blue) !important;
    box-shadow: 0 8px 20px rgba(8, 19, 38, 0.28) !important;
    transform: translateY(-1px);
}

.static-info-page :is(
    .contact-submit,
    .contact-email-link,
    .editor-contact-link,
    .guide-links a,
    .main-content .btn
):active {
    transform: scale(0.97);
}

.static-info-page :is(
    .contact-submit,
    .contact-email-link,
    .editor-contact-link,
    .guide-links a,
    .main-content .btn
):focus-visible {
    outline: 3px solid rgba(39, 182, 255, 0.35);
    outline-offset: 3px;
}

/* Guide pages use readable content bands instead of a single oversized card. */
.static-page-guide .guide-page {
    width: min(100%, 1080px);
    margin-inline: auto;
}

.static-page-guide .guide-layout {
    gap: 22px !important;
}

.static-page-guide .guide-article {
    padding: 0 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.static-page-guide .guide-article > :is(p:first-child, .guide-lead) {
    margin: 0 0 10px !important;
    padding: 18px 20px !important;
    color: var(--static-text) !important;
    background: var(--static-surface-soft) !important;
    border: 0 !important;
    border-left: 4px solid var(--static-green) !important;
    border-radius: 0 8px 8px 0 !important;
}

.static-page-guide .guide-article > h2 {
    margin: 0 !important;
    padding: 25px 0 11px !important;
    color: var(--static-blue) !important;
    border-bottom: 1px solid var(--static-border);
    font-size: 1.18rem !important;
    line-height: 1.35;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

.static-page-guide .guide-article > h2 + p {
    margin-top: 12px !important;
}

.static-page-guide .guide-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    margin: 26px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.static-page-guide .guide-links a:nth-child(2n) {
    border-color: rgba(255, 79, 154, 0.58) !important;
}

.static-page-guide :is(.guide-evidence, .guide-editorial-record, .guide-side-list) {
    border-color: var(--static-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.static-page-guide .guide-evidence {
    margin-top: 26px !important;
    background: var(--static-surface) !important;
}

.static-page-guide .guide-editorial-record {
    margin-top: 18px !important;
    background: var(--static-surface-soft) !important;
}

.static-page-guide .guide-evidence-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

@media (max-width: 900px) {
    .static-page-about .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .static-info-page .main-content {
        padding: 16px 12px 36px;
    }

    .static-info-page .section-header {
        margin-bottom: 18px !important;
        padding-bottom: 14px !important;
    }

    .static-info-page .section-title {
        font-size: 1.42rem !important;
    }

    .static-info-page .section-title i {
        width: 36px;
        height: 36px;
    }

    .static-page-about .main-content > div:nth-child(2) {
        padding: 22px 18px !important;
    }

    .static-page-about .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .static-page-about .stat-card {
        min-height: 0;
    }

    .static-page-guide .guide-article {
        padding-inline: 0 !important;
    }

    .static-page-guide .guide-article > :is(p:first-child, .guide-lead) {
        padding: 16px !important;
    }

    .static-page-guide .guide-article > h2 {
        padding-top: 22px !important;
        font-size: 1.08rem !important;
    }

    .static-page-guide .guide-links {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .static-page-guide .guide-links a,
    .static-info-page :is(.contact-submit, .contact-email-link, .editor-contact-link),
    .static-info-page .main-content .btn {
        width: 100%;
    }

    .static-page-privacy .main-content > div:nth-child(2) > div,
    .static-page-cookie .main-content > div:nth-child(2) > div,
    .static-page-terms .main-content > div:nth-child(2) > div,
    .static-page-about .main-content > div:nth-child(n+4) {
        padding-block: 20px !important;
    }
}
