/* MostHelt V3.40 — mobile readability / legal center / claim CTA hotfix
   Loaded last only on legal-center and profile-claim surfaces. */

/* Stop the global QA "anywhere" wrap rule from breaking Turkish words letter-by-letter. */
body.legal-sec-body :where(h1,h2,h3,h4,p,li,dd,dt,strong,small,span,button,a),
body.premium-claim-page :where(h1,h2,h3,h4,p,li,dd,dt,strong,small,span,button,a){
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body.legal-sec-body :where(a[href^="mailto:"],a[href^="https://"],.legal-contact-box a){
  overflow-wrap:anywhere!important;
}
body.legal-sec-body,body.premium-claim-page{overflow-x:hidden!important}

/* Claim-search CTA contrast — Safari/iOS safe. */
body.premium-claim-page .claim-result-claim,
body.premium-claim-page a.claim-result-claim,
body.premium-claim-page .claim-lookup-submit,
body.premium-claim-page .claim-submit{
  background:#087c69!important;
  background-color:#087c69!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid #087c69!important;
  opacity:1!important;
  box-shadow:0 9px 22px rgba(8,124,105,.18)!important;
}
body.premium-claim-page .claim-result-claim:hover,
body.premium-claim-page .claim-result-claim:focus-visible,
body.premium-claim-page .claim-lookup-submit:hover,
body.premium-claim-page .claim-submit:hover{
  background:#066b5b!important;
  background-color:#066b5b!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.premium-claim-page .claim-result-claim .mh-icon,
body.premium-claim-page .claim-lookup-submit .mh-icon,
body.premium-claim-page .claim-submit .mh-icon{color:#fff!important;stroke:currentColor!important}
body.premium-claim-page .claim-result-active{
  background:#eef8f5!important;
  color:#075f51!important;
  -webkit-text-fill-color:#075f51!important;
  border-color:#bcded4!important;
}

/* Legal-page TOC has a dedicated summary now. */
.legal-toc-summary{display:none;list-style:none;cursor:pointer;user-select:none}
.legal-toc-summary::-webkit-details-marker{display:none}

@media(max-width:760px){
  /* The legal header must never expand into the floating white nav sheet seen on iPhone. */
  body.legal-sec-body .sec-header{position:relative!important;top:auto!important;z-index:20!important}
  body.legal-sec-body .sec-topbar{height:68px!important;min-height:68px!important}
  body.legal-sec-body .sec-logo img{width:138px!important;max-width:42vw!important}
  body.legal-sec-body .sec-nav{display:none!important;position:static!important;padding:0!important;border:0!important;box-shadow:none!important}

  body.legal-sec-body .legal-sec-shell{
    width:calc(100% - 20px)!important;
    margin:0 auto!important;
    padding:12px 0 calc(150px + env(safe-area-inset-bottom))!important;
  }
  body.legal-sec-body .legal-sec-card{border-radius:20px!important;overflow:visible!important}
  body.legal-sec-body .legal-head{padding:22px 18px 20px!important}
  body.legal-sec-body .legal-crumb-row{margin-bottom:14px!important;gap:8px!important}
  body.legal-sec-body .legal-sec-back{margin:0!important;font-size:.78rem!important;line-height:1.35!important}
  body.legal-sec-body .legal-sec-kicker{font-size:.68rem!important;letter-spacing:.08em!important}
  body.legal-sec-body .legal-sec-card h1{
    font-size:clamp(1.9rem,8.7vw,2.35rem)!important;
    line-height:1.05!important;
    letter-spacing:-.04em!important;
    margin:10px 0 12px!important;
  }
  body.legal-sec-body .legal-lead{font-size:.96rem!important;line-height:1.58!important;margin:0 0 14px!important}
  body.legal-sec-body .legal-sec-updated{font-size:.8rem!important;margin:0 0 16px!important}
  body.legal-sec-body .legal-meta-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.legal-sec-body .legal-meta-pill{width:100%!important;min-width:0!important;padding:10px 12px!important;font-size:.82rem!important}

  body.legal-sec-body .legal-layout{display:flex!important;flex-direction:column!important;padding:18px 18px 34px!important;gap:14px!important}
  body.legal-sec-body .legal-content{order:2!important;min-width:0!important;width:100%!important}
  body.legal-sec-body .legal-toc{
    order:1!important;
    position:static!important;
    top:auto!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #dce9e5!important;
    border-radius:14px!important;
    background:#f8fbfa!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body.legal-sec-body .legal-toc-summary{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:52px!important;
    padding:0 14px!important;
    color:#214b43!important;
    font-size:.78rem!important;
    font-weight:850!important;
    letter-spacing:.09em!important;
    text-transform:uppercase!important;
  }
  body.legal-sec-body .legal-toc-summary small{font-size:.72rem!important;letter-spacing:0!important;text-transform:none!important;color:#7b8f89!important;font-weight:700!important}
  body.legal-sec-body .legal-toc-summary:after{content:"+";display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#e9f5f1;color:#087c69;font-size:1.15rem;font-weight:700;flex:0 0 auto}
  body.legal-sec-body .legal-toc[open] .legal-toc-summary:after{content:"−"}
  body.legal-sec-body .legal-toc-list{
    display:block!important;
    max-height:48vh!important;
    overflow:auto!important;
    padding:4px 9px 10px!important;
    border-top:1px solid #e5efec!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.legal-sec-body .legal-toc a{font-size:.84rem!important;line-height:1.34!important;padding:8px 10px!important;margin:1px 0!important}
  body.legal-sec-body .legal-toc-title{display:none!important}

  body.legal-sec-body .legal-content :where(p,li){font-size:.96rem!important;line-height:1.68!important}
  body.legal-sec-body .legal-sec-card h2{font-size:1.28rem!important;line-height:1.2!important;margin:26px 0 9px!important;padding-top:20px!important;scroll-margin-top:18px!important}
  body.legal-sec-body .legal-sec-card h3{font-size:1.02rem!important;line-height:1.3!important}
  body.legal-sec-body .legal-summary-grid,
  body.legal-sec-body .legal-grid-2,
  body.legal-sec-body .legal-mini-grid{grid-template-columns:1fr!important}
  body.legal-sec-body .legal-summary-card,
  body.legal-sec-body .legal-info-card,
  body.legal-sec-body .legal-mini{padding:13px 14px!important}
  body.legal-sec-body .legal-callout,
  body.legal-sec-body .legal-contact-box,
  body.legal-sec-body .legal-detail-box{max-width:100%!important;margin-left:0!important;margin-right:0!important;padding:14px 15px!important}
  body.legal-sec-body .legal-table-wrap,
  body.legal-sec-body .legal-sec-card table{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body.legal-sec-body .legal-table-wrap table{min-width:640px!important}

  /* The global bottom app nav is intentionally kept; reserve room for it. */
  body.legal-sec-body main{padding-bottom:0!important}

  /* Profile-claim search: make the call-to-action unmissable on phones. */
  body.premium-claim-page .claim-result-card{width:100%!important;max-width:100%!important;transform:none!important;box-shadow:none!important}
  body.premium-claim-page .claim-result-main{min-width:0!important}
  body.premium-claim-page .claim-result-main h3{font-size:1.02rem!important;line-height:1.25!important}
  body.premium-claim-page .claim-result-main p,
  body.premium-claim-page .claim-result-main small{font-size:.88rem!important;line-height:1.42!important}
  body.premium-claim-page .claim-result-action{width:100%!important;min-width:0!important}
  body.premium-claim-page .claim-result-action a,
  body.premium-claim-page .claim-result-claim{
    width:100%!important;
    min-height:48px!important;
    padding:0 16px!important;
    border-radius:13px!important;
    font-size:.94rem!important;
    line-height:1.2!important;
    white-space:normal!important;
  }
}

@media(max-width:390px){
  body.legal-sec-body .legal-sec-shell{width:calc(100% - 12px)!important}
  body.legal-sec-body .legal-head,body.legal-sec-body .legal-layout{padding-left:15px!important;padding-right:15px!important}
  body.legal-sec-body .legal-sec-card h1{font-size:1.85rem!important}
}

/* Standalone legal / claim surfaces do not need the fixed app dock; it obscures long-form content. */
@media(max-width:760px){
  body.legal-sec-body :where(.mh-mobile-app-dock,.mh-mobile-portal-dock),
  body.premium-claim-page :where(.mh-mobile-app-dock,.mh-mobile-portal-dock){display:none!important}
  body.legal-sec-body .legal-sec-shell{padding-bottom:64px!important}
  body.premium-claim-page main{padding-bottom:56px!important}
}
