.legal-hero {
    position: relative;
    padding: 9rem 0 5rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(9, 42, 31, 0.97), rgba(18, 60, 45, 0.9)),
        url("../images/hero/ecocity-hero.jpg") center/cover;
}

.legal-hero h1 {
    max-width: 850px;
    margin: 0.8rem 0 1rem;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
}

.legal-hero > .container > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.legal-section {
    padding: 5rem 0;
    background: #f7f8f5;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}

.legal-navigation {
    position: sticky;
    top: 110px;
    padding: 1.5rem;
    border: 1px solid rgba(18, 60, 45, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(18, 60, 45, 0.06);
}

.legal-navigation h2 {
    margin-bottom: 1rem;
    color: #123c2d;
    font-size: 1rem;
    font-weight: 700;
}

.legal-navigation nav {
    display: grid;
    gap: 0.25rem;
}

.legal-navigation a {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: #56635d;
    font-size: 0.92rem;
    text-decoration: none;
    transition: 0.2s ease;
}

.legal-navigation a:hover,
.legal-navigation a:focus-visible {
    background: rgba(18, 60, 45, 0.08);
    color: #123c2d;
}

.legal-content {
    padding: clamp(1.5rem, 4vw, 4rem);
    border: 1px solid rgba(18, 60, 45, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(18, 60, 45, 0.07);
}

.legal-content section {
    scroll-margin-top: 120px;
}

.legal-content section + section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(18, 60, 45, 0.1);
}

.legal-content h2 {
    margin-bottom: 1rem;
    color: #123c2d;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.legal-content h3 {
    color: #123c2d;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
    color: #4f5d57;
    line-height: 1.85;
}

.legal-content ul {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.25rem;
}

.legal-content a {
    color: #9a7429;
    font-weight: 600;
}

.legal-content code {
    padding: 0.18rem 0.42rem;
    border-radius: 5px;
    background: #edf2ef;
    color: #123c2d;
}

.legal-notice {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-left: 4px solid #b28b3f;
    border-radius: 0 12px 12px 0;
    background: #fbf7ed;
}

.legal-notice i {
    color: #9a7429;
    font-size: 1.3rem;
}

.legal-notice p {
    margin: 0;
}

.legal-contact-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: #f1f5f2;
}

.legal-contact-card p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}

.legal-contact-card i {
    color: #9a7429;
}

@media (max-width: 991.98px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-navigation {
        position: static;
    }

    .legal-navigation nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .legal-hero {
        padding: 7rem 0 3.5rem;
    }

    .legal-section {
        padding: 3rem 0;
    }

    .legal-navigation nav {
        grid-template-columns: 1fr;
    }

    .legal-content {
        border-radius: 14px;
    }
}

/* Keep legal-page hero titles clear and readable */
.legal-hero h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.legal-hero .section-eyebrow {
    color: #d3a84f !important;
    -webkit-text-fill-color: #d3a84f !important;
}

.legal-cookie-table {
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 45, 0.12);
    border-radius: 12px;
}

.legal-cookie-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
}

.legal-cookie-row + .legal-cookie-row {
    border-top: 1px solid rgba(18, 60, 45, 0.1);
}

.legal-cookie-row span {
    padding: 1rem;
    color: #4f5d57;
    line-height: 1.6;
}

.legal-cookie-heading {
    background: #123c2d;
}

.legal-cookie-heading span {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .legal-cookie-row {
        grid-template-columns: 1fr;
    }

    .legal-cookie-heading {
        display: none;
    }

    .legal-cookie-row span {
        padding: 0.75rem 1rem;
    }
}

.trust-introduction {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.trust-introduction h2,
.trust-security-summary h2 {
    margin: 0.7rem 0 1rem;
    color: #123c2d;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.trust-introduction p,
.trust-security-summary p {
    color: #5b6862;
    font-size: 1.05rem;
    line-height: 1.8;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.trust-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 2rem;
    border: 1px solid rgba(18, 60, 45, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(18, 60, 45, 0.07);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover,
.trust-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(18, 60, 45, 0.13);
}

.trust-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 1.4rem;
    place-items: center;
    border-radius: 14px;
    background: rgba(178, 139, 63, 0.13);
    color: #9a7429;
    font-size: 1.45rem;
}

.trust-card h3 {
    color: #123c2d;
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
}

.trust-card p {
    flex-grow: 1;
    margin: 0.8rem 0 1.5rem;
    color: #5b6862;
    line-height: 1.75;
}

.trust-card > span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #9a7429;
    font-weight: 700;
}

.trust-security-summary {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 22px;
    background: #123c2d;
}

.trust-security-summary h2,
.trust-security-summary p {
    color: #ffffff;
}

.trust-security-summary ul {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-security-summary li {
    display: flex;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-security-summary li i {
    color: #d3a84f;
}

.trust-contact {
    margin-top: 3rem;
    padding: 2rem;
}

@media (max-width: 991.98px) {
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-security-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575.98px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        min-height: auto;
    }
}

.status-overview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
}

.status-overview--operational {
    border: 1px solid rgba(25, 135, 84, 0.22);
    background: #edf8f1;
}

.status-overview--issue {
    border: 1px solid rgba(190, 126, 20, 0.25);
    background: #fff7e9;
}

.status-overview-icon {
    font-size: 2.7rem;
}

.status-overview--operational .status-overview-icon {
    color: #198754;
}

.status-overview--issue .status-overview-icon {
    color: #be7e14;
}

.status-overview span {
    color: #66736d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-overview h2 {
    margin: 0.2rem 0;
    color: #123c2d;
    font-family: "Playfair Display", serif;
}

.status-overview p {
    margin: 0;
    color: #5b6862;
}

.status-services {
    display: grid;
    gap: 1rem;
}

.status-service {
    padding: 1.5rem;
    border: 1px solid rgba(18, 60, 45, 0.1);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(18, 60, 45, 0.05);
}

.status-service-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.status-service h3 {
    margin-bottom: 0.35rem;
    color: #123c2d;
}

.status-service p {
    margin: 0;
    color: #65716c;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge--operational {
    background: #e5f5eb;
    color: #147443;
}

.status-badge--issue {
    background: #fff0d8;
    color: #9a6210;
}

.status-information {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.status-information > div {
    padding: 1.75rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(18, 60, 45, 0.06);
}

.status-information i {
    color: #9a7429;
    font-size: 1.5rem;
}

.status-information h3 {
    margin: 1rem 0 0.6rem;
    color: #123c2d;
}

.status-information p {
    margin: 0;
    color: #65716c;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .status-overview,
    .status-service-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-information {
        grid-template-columns: 1fr;
    }
}