/* ============================================
   LEGAL PAGES — TABLET (696px – 1024px)
   Covers: privacy-policy.html, terms-of-use.html
   ============================================ */

@media screen and (min-width: 696px) and (max-width: 1024px) {

    /* ============================================
       HERO TITLE
       ============================================ */

    .content-row.full.row_padding_top h1,
    .content-row.full h1[style*="font-size: 88px"] {
        font-size: clamp(38px, 6vw, 62px) !important;
        letter-spacing: -2px !important;
        line-height: 1.1 !important;
    }

    /* ============================================
       MAIN CONTENT AREA
       Inner div has inline: padding: 40px 30px
       Keep comfortable padding on tablet
       ============================================ */

    #main-page-content .content-row > div[style*="max-width: 900px"] {
        padding: 40px 24px !important;
    }

    /* ============================================
       FOOTER — COMPACT FOOTER (tablet reflow)
       .footer-middle has inline:
         position: absolute; left:0; right:0; gap: 150px
       Override to normal flex-wrap layout
       ============================================ */

    .clapat-footer.compact-footer {
        height: auto !important;
        min-height: auto !important;
    }

    .clapat-footer.compact-footer #footer-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px 30px !important;
        height: auto !important;
        position: relative !important;
        gap: 10px !important;
    }

    /* Row 1: Nav + Copyright — full width, centred */
    .clapat-footer.compact-footer #footer-container .footer-middle {
        flex: 1 1 100% !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        position: relative !important;   /* override inline absolute */
        height: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        pointer-events: auto !important;
    }

    /* Nav links: row, wrapping, centred */
    .clapat-footer.compact-footer .footer-middle nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px 20px !important;
        font-size: 14px !important;     /* override inline 16px */
    }

    /* Copyright div (inline font-size: 8px) — replace with readable pseudo content */
    .clapat-footer.compact-footer .footer-middle > div[style*="font-size: 8px"] {
        display: block !important;
        visibility: hidden !important;
        font-size: 0 !important;
        text-align: center !important;
        margin-top: 4px !important;
        width: 100% !important;
        position: relative !important;
    }

    .clapat-footer.compact-footer .footer-middle > div[style*="font-size: 8px"]::before {
        content: "Copyright \00A9 2026. All Rights Reserved" !important;
        visibility: visible !important;
        font-size: 13px !important;
        color: #02042a !important;
        display: block !important;
    }

    /* Back to Top */
    .clapat-footer.compact-footer #footer-container #backtotop.button-wrap.left {
        flex: 0 0 auto !important;
        order: 2 !important;
        position: relative !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;           /* override inline margin-top: -50px */
        display: flex !important;
        align-items: center !important;
        pointer-events: auto !important;
    }

    .clapat-footer.compact-footer #footer-container #backtotop.button-wrap.left .button-text {
        display: none !important;
    }

    .clapat-footer.compact-footer #footer-container #backtotop.button-wrap.left .icon-wrap {
        float: none !important;
        position: relative !important;
        margin: 0 !important;
        opacity: 1 !important;
        width: 36px !important;
        height: 36px !important;
    }

    .clapat-footer.compact-footer #footer-container #backtotop.button-wrap.left .button-icon {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
    }

    .clapat-footer.compact-footer #footer-container #backtotop.button-wrap.left .button-icon i {
        color: #601fe0 !important;
        font-size: 16px !important;
    }

    /* Social icons */
    .clapat-footer.compact-footer #footer-container .socials-wrap {
        flex: 0 0 auto !important;
        order: 3 !important;
        position: relative !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 0 16px !important;
        padding: 0 !important;
        transform: none !important;
    }

    .clapat-footer.compact-footer #footer-container .socials-wrap .socials-text,
    .clapat-footer.compact-footer #footer-container .socials-wrap .socials-icon {
        display: none !important;
    }

    .clapat-footer.compact-footer #footer-container .socials-wrap .socials {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        transform: none !important;
    }

    .clapat-footer.compact-footer #footer-container .socials-wrap .socials li {
        float: none !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }

    .clapat-footer.compact-footer #footer-container .socials-wrap .socials li a {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 16px !important;
    }

}
