/* MAJ 16-11-26: only the contact map, mobile footer links and related cards. */
.ges161126-legal { font-size: 16px; line-height: 1.75; color: #454545; overflow-wrap: anywhere; }
.ges161126-legal h2 { font-size: clamp(21px, 3vw, 28px); line-height: 1.3; margin: 32px 0 14px; color: #232323; }
.ges161126-legal p { margin-bottom: 20px; }
.ges161126-legal a { color: #176e96; text-decoration: underline; }
.ges161126-legal-title h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin-bottom: 28px; }
body.ges161126-contact .elementor-element.elementor-element-e666466 {
    --padding-top: 0px !important;
    padding-top: 0 !important;
}
@media (max-width: 991px) {
    /* Keep the existing off-canvas menu fully outside this legal page while closed. */
    body.ges161126-legal-page .left-menu-classic-section,
    body.ges161126-legal-page .left-menu-classic-section > .full-screen {
        width: 290px !important;
        max-width: 100vw !important;
    }
}
@media (max-width: 767px) {
    /* Keep the last legal link clear of the existing mobile contact rail.
       The current theme overrides its historical 75px footer clearance. */
    body:not(.ges-contact-page):not(.ges161126-contact) footer.footer-main-wrapper.site-footer:has(.elementor-35734 .ges71495-footer-links) {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
    footer.site-footer .elementor-35734 .elementor-element.elementor-element-4bbd103 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 0 !important;
        --gap: 0px;
        --row-gap: 0px;
    }
    footer.site-footer .elementor-35734 .elementor-element-4bbd103 .elementor-element-3fa5803 > .elementor-widget-container {
        margin-bottom: 0 !important;
    }
    footer.site-footer .elementor-35734 .elementor-element-4bbd103 .elementor-element-3fa5803 .litho-primary-title {
        margin-bottom: 0 !important;
    }
    /* Explicit mobile order requested: sitemap before partners, desktop unchanged. */
    footer.site-footer .elementor-35734 .elementor-element-4bbd103 > .elementor-element-e714951 {
        order: -1 !important;
    }
    footer.site-footer .elementor-35734 .elementor-element-4bbd103 > .elementor-element-3fa5803 {
        order: 0 !important;
    }
    /* Remove accumulated 43px image margin + inline baseline + 15px title padding.
       Uniform mobile 3:2 photo frames; crop centrally without distorting sources. */
    .ges71495-related-cards.ges161126-carousel .swiper-slide.litho-image-box-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        padding: 16px 16px 20px !important;
    }
    .ges71495-related-cards.ges161126-carousel .swiper-slide .litho-image-box-img {
        display: block !important;
        margin: 0 !important;
    }
    .ges71495-related-cards.ges161126-carousel .swiper-slide .litho-image-box-img img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    .ges71495-related-cards.ges161126-carousel .swiper-slide .elementor-icon-box-content {
        padding: 0 !important;
        margin: 16px 0 0 !important;
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .ges71495-related-cards.ges161126-carousel .swiper-slide .elementor-icon-box-title {
        margin: 0 !important;
    }
    /* Scope to already-tagged related cards, not home hero or other sliders.
       Previous CSS imposed margin-right:0 while Swiper calculated a 20px gap.
       Use zero spacing in both CSS and Swiper so snap geometry agrees. */
    .ges71495-related-cards.ges161126-carousel .swiper {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    .ges71495-related-cards.ges161126-carousel .swiper-slide {
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .ges71495-related-cards.ges161126-carousel .litho-image-box-img,
    .ges71495-related-cards.ges161126-carousel .elementor-icon-box-content {
        width: 100% !important;
        text-align: center !important;
    }
    .ges71495-related-cards.ges161126-carousel .litho-image-box-img img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
