/* Scoped exclusively to Divi pages containing the existing AD24 custom header. */
body.ad24fix-custom-header #main-header,body.ad24fix-custom-header #top-header{display:none!important}
body.ad24fix-custom-header #page-container{padding-top:0!important}
body.ad24fix-custom-header #et-main-area{padding-top:0!important}
body.ad24fix-custom-header .ad24fix-managed-header{position:relative;min-height:76px;gap:18px}
body.ad24fix-custom-header .ad24fix-managed-header .ad24-menu-toggle{display:none}
@media(max-width:980px){
 body.ad24fix-custom-header .ad24fix-managed-header{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;padding:16px 18px!important;min-height:78px}
 body.ad24fix-custom-header .ad24fix-managed-header .ad24-logo{font-size:clamp(19px,4.5vw,25px)!important;white-space:nowrap}
 body.ad24fix-custom-header .ad24fix-managed-header .ad24-menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #d7e4f3;border-radius:9px;background:#f4f8fe;color:#123766;font-size:25px;cursor:pointer;line-height:1}
 body.ad24fix-custom-header .ad24fix-managed-header .ad24-menu-toggle:focus-visible{outline:3px solid #187bd9;outline-offset:3px}
 body.ad24fix-custom-header .ad24fix-managed-header nav{display:none!important;flex-basis:100%;width:100%;flex-direction:column!important;gap:0!important;padding:8px 0 4px;border-top:1px solid #e0e9f5}
 body.ad24fix-custom-header .ad24fix-managed-header.ad24-menu-open nav{display:flex!important}
 body.ad24fix-custom-header .ad24fix-managed-header nav a{display:block!important;padding:12px 6px!important;border-bottom:1px solid #edf2f9;font-size:15px!important;white-space:normal!important;line-height:1.4!important}
 body.ad24fix-custom-header .ad24-legal-section{padding:30px 14px 50px!important}
}
body.ad24fix-legal .ad24-legal{max-width:860px!important;margin:0 auto!important;padding:clamp(20px,4vw,48px)!important;background:#fff;border:1px solid #e2eaf5;border-radius:12px;box-shadow:0 8px 28px rgba(15,43,83,.055);font-size:16px!important;line-height:1.8!important;overflow-wrap:anywhere}
body.ad24fix-legal .ad24-legal h1{font-size:clamp(30px,5vw,44px)!important;line-height:1.2!important;overflow-wrap:anywhere}
body.ad24fix-legal .ad24-legal h2{font-size:clamp(20px,3vw,25px)!important;line-height:1.35!important;margin-top:30px!important}
body.ad24fix-legal .ad24-legal p,body.ad24fix-legal .ad24-legal li{font-size:clamp(15px,2.5vw,17px)!important;line-height:1.8!important}
body.ad24fix-legal .ad24-legal a{text-decoration:underline;text-underline-offset:3px}

/* Ensure the magazine header and toggle remain usable across Divi layouts. */
@media(max-width:980px){body.ad24fix-custom-header .ad24fix-managed-header .ad24-menu-toggle{visibility:visible!important;opacity:1!important;z-index:10!important}body.ad24fix-custom-header .ad24fix-managed-header{z-index:30}}
