/* Mobile refinement for footer-linked public pages and short public screens. */
@media (max-width:760px){
  html{min-height:100%}
  body{min-height:100vh;min-height:100dvh;display:flex!important;flex-direction:column!important}
  body>main{flex:1 0 auto!important;width:100%}
  body>.gl-footer-unified{margin-top:auto!important;flex:0 0 auto!important;width:100%}

  body[data-gl-route="resources"] .gl-page-hero,
  body[data-gl-route="faq"] .gl-page-hero,
  body[data-gl-route="about"] .gl-page-hero,
  body[data-gl-route="contact"] .gl-page-hero,
  body[data-gl-route="privacy"] .gl-page-hero,
  body[data-gl-route="terms"] .gl-page-hero,
  body[data-gl-route="cookies"] .gl-page-hero{
    padding:18px 0 12px!important;
    min-height:0!important;
  }

  body[data-gl-route="resources"] .gl-page-hero::after,
  body[data-gl-route="faq"] .gl-page-hero::after,
  body[data-gl-route="about"] .gl-page-hero::after,
  body[data-gl-route="contact"] .gl-page-hero::after,
  body[data-gl-route="privacy"] .gl-page-hero::after,
  body[data-gl-route="terms"] .gl-page-hero::after,
  body[data-gl-route="cookies"] .gl-page-hero::after{display:none!important}

  body[data-gl-route="resources"] .gl-page-hero-inner,
  body[data-gl-route="faq"] .gl-page-hero-inner,
  body[data-gl-route="about"] .gl-page-hero-inner,
  body[data-gl-route="contact"] .gl-page-hero-inner,
  body[data-gl-route="privacy"] .gl-page-hero-inner,
  body[data-gl-route="terms"] .gl-page-hero-inner,
  body[data-gl-route="cookies"] .gl-page-hero-inner{
    width:min(calc(100% - 24px),var(--gl-container))!important;
    max-width:none!important;
  }

  body[data-gl-route="resources"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="faq"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="about"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="contact"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="privacy"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="terms"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="cookies"] .gl-page-hero .gl-eyebrow{
    padding:4px 8px!important;
    font-size:.61rem!important;
    line-height:1!important;
  }

  body[data-gl-route="resources"] .gl-page-hero h1,
  body[data-gl-route="faq"] .gl-page-hero h1,
  body[data-gl-route="about"] .gl-page-hero h1,
  body[data-gl-route="contact"] .gl-page-hero h1,
  body[data-gl-route="privacy"] .gl-page-hero h1,
  body[data-gl-route="terms"] .gl-page-hero h1,
  body[data-gl-route="cookies"] .gl-page-hero h1{
    margin:9px 0 6px!important;
    max-width:100%!important;
    font-size:clamp(1.62rem,7vw,1.9rem)!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
  }

  body[data-gl-route="resources"] .gl-page-hero p,
  body[data-gl-route="faq"] .gl-page-hero p,
  body[data-gl-route="about"] .gl-page-hero p,
  body[data-gl-route="contact"] .gl-page-hero p,
  body[data-gl-route="privacy"] .gl-page-hero p,
  body[data-gl-route="terms"] .gl-page-hero p,
  body[data-gl-route="cookies"] .gl-page-hero p{
    max-width:100%!important;
    font-size:.73rem!important;
    line-height:1.42!important;
  }

  body[data-gl-route="resources"] .gl-content-section,
  body[data-gl-route="faq"] .gl-content-section,
  body[data-gl-route="about"] .gl-content-section,
  body[data-gl-route="contact"] .gl-content-section,
  body[data-gl-route="privacy"] .gl-content-section,
  body[data-gl-route="terms"] .gl-content-section,
  body[data-gl-route="cookies"] .gl-content-section{
    padding:8px 0 26px!important;
  }

  body[data-gl-route="resources"] .gl-content-section>.gl-container,
  body[data-gl-route="faq"] .gl-content-section>.gl-container,
  body[data-gl-route="about"] .gl-content-section>.gl-container,
  body[data-gl-route="contact"] .gl-content-section>.gl-container,
  body[data-gl-route="privacy"] .gl-content-section>.gl-container,
  body[data-gl-route="terms"] .gl-content-section>.gl-container,
  body[data-gl-route="cookies"] .gl-content-section>.gl-container{
    width:min(calc(100% - 24px),var(--gl-container))!important;
  }

  body[data-gl-route="resources"] .gl-content-grid,
  body[data-gl-route="about"] .gl-content-grid{
    grid-template-columns:1fr!important;
    gap:0!important;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.1);
    border-radius:15px;
    background:linear-gradient(145deg,rgba(25,28,65,.84),rgba(12,14,38,.9));
    box-shadow:0 14px 34px rgba(0,0,0,.2);
  }
  body[data-gl-route="resources"] .gl-content-card,
  body[data-gl-route="about"] .gl-content-card{
    min-height:0!important;
    padding:13px 14px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
  }
  body[data-gl-route="resources"] .gl-content-card:last-child,
  body[data-gl-route="about"] .gl-content-card:last-child{border-bottom:0!important}
  body[data-gl-route="resources"] .gl-content-card h2,
  body[data-gl-route="about"] .gl-content-card h2{margin:0 0 4px!important;font-size:.84rem!important;line-height:1.2!important}
  body[data-gl-route="resources"] .gl-content-card p,
  body[data-gl-route="about"] .gl-content-card p{font-size:.68rem!important;line-height:1.36!important}

  body[data-gl-route="resources"] .gl-resource-list{margin-top:10px!important;border-radius:14px!important}
  body[data-gl-route="resources"] .gl-resource-row{gap:8px!important;padding:11px 12px!important;align-items:center!important}
  body[data-gl-route="resources"] .gl-resource-row strong{font-size:.75rem!important;line-height:1.2!important}
  body[data-gl-route="resources"] .gl-resource-row span{font-size:.65rem!important;line-height:1.3!important}

  body[data-gl-route="faq"] .gl-faq-list{gap:7px!important}
  body[data-gl-route="faq"] .gl-faq-item{padding:12px 13px!important;border-radius:13px!important}
  body[data-gl-route="faq"] .gl-faq-item h2{margin:0 0 4px!important;font-size:.79rem!important;line-height:1.25!important}
  body[data-gl-route="faq"] .gl-faq-item p{font-size:.67rem!important;line-height:1.4!important}

  body[data-gl-route="privacy"] .gl-legal-notice,
  body[data-gl-route="terms"] .gl-legal-notice,
  body[data-gl-route="cookies"] .gl-legal-notice{
    margin:0 0 8px!important;
    padding:9px 11px!important;
    border-radius:11px!important;
    font-size:.65rem!important;
    line-height:1.35!important;
  }
  body[data-gl-route="privacy"] .gl-legal-stack,
  body[data-gl-route="terms"] .gl-legal-stack,
  body[data-gl-route="cookies"] .gl-legal-stack{gap:7px!important}
  body[data-gl-route="privacy"] .gl-legal-section,
  body[data-gl-route="terms"] .gl-legal-section,
  body[data-gl-route="cookies"] .gl-legal-section{
    padding:12px 13px!important;
    border-radius:13px!important;
  }
  body[data-gl-route="privacy"] .gl-legal-section h2,
  body[data-gl-route="terms"] .gl-legal-section h2,
  body[data-gl-route="cookies"] .gl-legal-section h2{margin:0 0 4px!important;font-size:.79rem!important;line-height:1.22!important}
  body[data-gl-route="privacy"] .gl-legal-section p,
  body[data-gl-route="terms"] .gl-legal-section p,
  body[data-gl-route="cookies"] .gl-legal-section p{font-size:.66rem!important;line-height:1.43!important}

  body[data-gl-route="contact"] .gl-contact-layout{grid-template-columns:1fr!important;gap:9px!important}
  body[data-gl-route="contact"] .gl-content-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body[data-gl-route="contact"] .gl-content-card{min-height:0!important;padding:10px 9px!important;border-radius:12px!important}
  body[data-gl-route="contact"] .gl-content-card h2{margin:0 0 4px!important;font-size:.7rem!important;line-height:1.18!important}
  body[data-gl-route="contact"] .gl-content-card p{font-size:.59rem!important;line-height:1.28!important}
  body[data-gl-route="contact"] .gl-contact-form{padding:13px!important;gap:9px!important;border-radius:14px!important}
  body[data-gl-route="contact"] .gl-field{gap:4px!important}
  body[data-gl-route="contact"] .gl-field label{font-size:.68rem!important}
  body[data-gl-route="contact"] .gl-field input,
  body[data-gl-route="contact"] .gl-field textarea{padding:9px 10px!important;border-radius:9px!important;font-size:.72rem!important}
  body[data-gl-route="contact"] .gl-field textarea{min-height:92px!important}
  body[data-gl-route="contact"] .gl-form-note,
  body[data-gl-route="contact"] .gl-form-status{font-size:.62rem!important;line-height:1.35!important}
  body[data-gl-route="contact"] .gl-contact-form .gl-btn{min-height:35px!important;padding:0 12px!important;font-size:.7rem!important;justify-self:start!important}

  /* Same compact CTA standard used on persona pages. */
  body[data-gl-route="resources"] .gl-page-cta,
  body[data-gl-route="faq"] .gl-page-cta,
  body[data-gl-route="about"] .gl-page-cta{padding:0 0 20px!important}
  body[data-gl-route="resources"] .gl-page-cta>.gl-container,
  body[data-gl-route="faq"] .gl-page-cta>.gl-container,
  body[data-gl-route="about"] .gl-page-cta>.gl-container{width:min(calc(100% - 24px),var(--gl-container))!important}
  body[data-gl-route="resources"] .gl-page-cta-box,
  body[data-gl-route="faq"] .gl-page-cta-box,
  body[data-gl-route="about"] .gl-page-cta-box{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px 15px!important;
    border:1px solid rgba(255,159,28,.28)!important;
    border-radius:15px!important;
    background:radial-gradient(circle at 88% 50%,rgba(255,159,28,.14),transparent 42%),linear-gradient(135deg,rgba(31,26,78,.96),rgba(16,25,62,.96))!important;
    box-shadow:0 16px 38px rgba(0,0,0,.22)!important;
  }
  body[data-gl-route="resources"] .gl-page-cta-box h2,
  body[data-gl-route="faq"] .gl-page-cta-box h2,
  body[data-gl-route="about"] .gl-page-cta-box h2{margin:0!important;font-size:.92rem!important;line-height:1.18!important;letter-spacing:-.025em!important}
  body[data-gl-route="resources"] .gl-page-cta-box .gl-btn,
  body[data-gl-route="faq"] .gl-page-cta-box .gl-btn,
  body[data-gl-route="about"] .gl-page-cta-box .gl-btn{min-height:34px!important;padding:0 11px!important;border-radius:9px!important;font-size:.68rem!important;white-space:nowrap!important}

  .gl-consent[data-gl-consent]{left:8px!important;right:8px!important;bottom:8px!important;padding:12px!important;border-radius:14px!important}
  .gl-consent-inner{grid-template-columns:1fr!important;gap:9px!important}
  .gl-consent-copy strong{font-size:.77rem!important}
  .gl-consent-copy p{font-size:.64rem!important;line-height:1.36!important}
  .gl-consent-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important}
  .gl-consent-actions .gl-btn{min-height:34px!important;padding:0 8px!important;font-size:.66rem!important}
}

@media (max-width:390px){
  body[data-gl-route="contact"] .gl-content-grid{grid-template-columns:1fr!important;gap:6px!important}
  body[data-gl-route="contact"] .gl-content-card{padding:10px 11px!important}
}
