/**
 * Text / legal pages (layouts.app) — aligned with LEAD THE CHANGE homepage header
 */

:root {
    --text-page-navy: #171d72;
    --text-page-navy-deep: #0b1530;
    --text-page-muted: #5c5c5c;
    --contact-box7-gradient: linear-gradient(180deg, #24366e 0%, #2d056c 100%);
}

.container-small {
    max-width: 1680px;
    padding-left: clamp(20px, 2.60416667vw, 50px);
    padding-right: clamp(20px, 2.60416667vw, 50px);
    width: 100%;
    margin: 0 auto;
}

#contact_box7 h4 {
    color: #ffffff;
}

.contact_box7_text11 ul {
    list-style: none;
    padding-left: 0;
}

.contact_box7_text11 ul li {
    display: inline-block;
    margin-right: 15px;
}

.contact_box7_text11 a {
    color: #ffffff;
}

/* ---- Header (match homepage .box0 rhythm) ---- */
.layout-text-page .text-page-header.box0 {
    background-color: #ffffff;
    color: var(--text-page-navy);
    font-family: "Akshar", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    border-bottom: 1px solid rgba(23, 29, 114, 0.08);
}

.layout-text-page .text-page-tagline {
    color: var(--text-page-muted);
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.layout-text-page .text-page-header .header-logo img,
.layout-text-page .text-page-header .logo img {
    max-width: 190px;
    height: auto;
}

/* Language switcher — same visual weight as homepage #header-lang */
.layout-text-page #header-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.layout-text-page #header-lang .nav-link,
.layout-text-page #header-lang .text-page-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    margin: 0;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.layout-text-page #header-lang .nav-link:hover,
.layout-text-page #header-lang .text-page-lang-link:hover {
    background-color: rgba(23, 29, 114, 0.06);
    color: var(--text-page-navy);
    text-decoration: none;
}

.layout-text-page #header-lang .nav-link img,
.layout-text-page #header-lang span.nav-link img {
    width: 22px;
    height: auto;
    vertical-align: middle;
}

.layout-text-page #header-lang span.nav-link.active,
.layout-text-page #header-lang .text-page-lang-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    color: #6b6b6b;
    cursor: default;
}

/* ---- Main article column: centered block, readable body ---- */
.layout-text-page .text-page-main {
    margin-top: 0.5rem;
}

.layout-text-page .content-justify {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.layout-text-page .content-justify > h1:first-child,
.layout-text-page .content-justify > h2:first-child {
    text-align: center;
    color: var(--text-page-navy-deep);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.layout-text-page .content-justify h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.layout-text-page .content-justify p,
.layout-text-page .content-justify li {
    line-height: 1.65;
}

/* Pages without .text-page-content (e.g. cookies): center title, constrain width */
.layout-text-page #canvas #box_wrapper > .container > .row > .col-md-12 > h1:first-child {
    text-align: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-page-navy-deep);
}

.layout-text-page #canvas #box_wrapper > .container > .row > .col-md-12 .cookie_category_all {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer strip: Maxwell gradient (same as leadthechange theme) ---- */
.layout-text-page #contact_box7 {
    background: var(--contact-box7-gradient);
    color: #ffffff;
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.layout-text-page #contact_box7 h4 {
    color: #ffffff;
    font-weight: 700;
}

.layout-text-page .contact_box7_text11 a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.layout-text-page .contact_box7_text11 a:hover {
    color: #e8d48b;
}

.layout-text-page .contact_box7_text11 .btn {
    text-decoration: none;
}

.footer-links a, .footer-links button, .footer-links a:hover, .footer-links a:focus {
    text-decoration: none;
    color: #37246b;
}

.footer-logo img {
    max-width: 150px;
}

@media (max-width: 575.98px) {
    .layout-text-page .text-page-header .row.align-items-center > [class*="col-"]:first-child {
        margin-bottom: 0.5rem;
    }

    .layout-text-page #header-lang {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}
