/* Public-page language visibility and typography consistency. */
html:not([lang="ar"]) .lang-ar{display:none!important}
html[lang="ar"] .lang-en{display:none!important}

html[lang="en"] body,html[lang="fr"] body,html[lang="es"] body,html[lang="tr"] body{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
html[lang="ar"] body,html[lang="fa"] body{
  font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
}
html[lang="zh-CN"] body{
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
}
html[lang="hi"] body{
  font-family:"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",sans-serif;
}

.subpage-hero{padding-block:74px 58px}
.subpage-hero h1{
  max-width:940px;
  margin:0;
  font-size:clamp(2.45rem,4.35vw,4.25rem);
  line-height:1.06;
  letter-spacing:-.04em;
}
.subpage-hero p{
  max-width:800px;
  margin-top:20px;
  font-size:1.02rem;
  line-height:1.72;
}
.page-section{padding-block:72px}
.page-title-row h2,.prose h2,.contact-card h2{line-height:1.18}
.prose{max-width:820px;font-size:1rem;line-height:1.78}
.prose p,.prose li{line-height:1.78}
.principle-card h3,.result-card h3{line-height:1.3}

html[lang="ar"] .subpage-hero h1,html[lang="fa"] .subpage-hero h1{
  max-width:980px;
  font-size:clamp(2.05rem,3.75vw,3.5rem);
  line-height:1.28;
  letter-spacing:0;
  font-weight:700;
}
html[lang="ar"] .subpage-hero p,html[lang="fa"] .subpage-hero p{line-height:1.92}
html[lang="zh-CN"] .subpage-hero h1{
  font-size:clamp(2.25rem,4vw,3.8rem);
  line-height:1.18;
  letter-spacing:-.025em;
}
html[lang="zh-CN"] .subpage-hero p{line-height:1.82}
html[lang="hi"] .subpage-hero h1{
  font-size:clamp(2.15rem,3.9vw,3.65rem);
  line-height:1.22;
  letter-spacing:-.015em;
}
html[lang="hi"] .subpage-hero p{line-height:1.86}
html[lang="fr"] .subpage-hero h1,html[lang="es"] .subpage-hero h1,html[lang="tr"] .subpage-hero h1{
  font-size:clamp(2.35rem,4.15vw,4rem);
  line-height:1.1;
  letter-spacing:-.035em;
}

@media(max-width:620px){
  .subpage-hero{padding-block:54px 42px}
  .subpage-hero h1{font-size:2.35rem;line-height:1.1}
  .subpage-hero p{font-size:.98rem;line-height:1.7}
  html[lang="ar"] .subpage-hero h1,html[lang="fa"] .subpage-hero h1{font-size:1.95rem;line-height:1.34}
  html[lang="zh-CN"] .subpage-hero h1,html[lang="hi"] .subpage-hero h1{font-size:2.05rem;line-height:1.28}
}

/* A page body shown in English inside an RTL or non-Latin locale (Legal in fa, zh-CN, hi …)
   keeps the English typography, so it reads as the English edition, not as a broken translation. */
html body main[lang="en"]{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
html body main[lang="en"] .legal-prose{font-family:inherit}
html body main[lang="en"] .subpage-hero h1,
html body main[lang="en"] .legal-hero h1,
html body main[lang="en"] .page-hero h1{
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:500!important;
  letter-spacing:-.04em!important;
  font-size:clamp(2.45rem,4.35vw,4.25rem);
  line-height:1.06;
}
html body main[lang="en"] .subpage-hero p{line-height:1.72}
html body .locale-content-notice[lang="fa"]{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
html body .locale-content-notice[lang="zh-CN"]{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei","Segoe UI",sans-serif}
html body .locale-content-notice[lang="hi"]{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",sans-serif}
