/* F. BINSABBAR public Legal Centre. Layout on the canonical storefront kit.
   Futura supplies Latin glyphs; Tajawal supplies Arabic, including mixed text. */
#site {
  font-family: "futura-pt", var(--far);
  font-weight: 400;
  min-height: 100vh;
}
#site :is(button, input, select, textarea) { font-family: inherit; }
#site [lang="en"] { font-family: "futura-pt", var(--far); }
html[lang="ar"] #site, html[lang="ar"] #site * { letter-spacing: 0; }
#site [hidden] { display: none !important; }

.lg-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--hh);
  padding: env(safe-area-inset-top) max(var(--mx), env(safe-area-inset-right)) 0 max(var(--mx), env(safe-area-inset-left));
  background: var(--paper); border-bottom: 1px solid var(--hair);
}
.lg-nav-logo { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.lg-nav-logo img { width: auto; height: 21px; max-width: 100%; }
.lg-lang { min-height: 44px; padding-inline: 12px; white-space: nowrap; }
.lg-lang:hover { opacity: .65; }
.lg-nav :is(a, button):focus-visible, .lg-main a:focus-visible,
.lg-footer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.lg-main {
  max-width: 800px; margin: 0 auto;
  padding: 56px max(var(--mx), env(safe-area-inset-right)) 80px max(var(--mx), env(safe-area-inset-left));
  min-height: 60vh;
}
.lg-hero { margin: 0 0 48px; }
.lg-eyebrow, .lg-cat {
  font-size: var(--ty-over); line-height: var(--ty-over-lh);
  letter-spacing: var(--ty-track-over); text-transform: uppercase;
  color: var(--grey); font-weight: 400;
}
.lg-eyebrow { margin: 0 0 16px; }
.lg-hero h1, .lg-article h1 {
  font-size: var(--ty-h-sec); line-height: var(--ty-h-sec-lh);
  font-weight: 400; margin: 0 0 20px;
}
.lg-lede { color: var(--grey); margin: 0; }
.lg-doclist { display: flex; flex-direction: column; }
.lg-cat { margin: 40px 0 8px; }
.lg-cat:first-child { margin-top: 0; }
.lg-doclist a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--hair);
  color: var(--ink); text-decoration: none; transition: opacity .2s var(--e1);
}
.lg-doclist a:hover { opacity: .65; }
.lg-doclist .tt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lg-doclist .t { font-size: var(--ty-body); line-height: var(--ty-body-lh); font-weight: 400; }
.lg-doclist .scope { font-size: var(--ty-compact); line-height: var(--ty-compact-lh); color: var(--grey); }
.lg-doclist .chev { flex: none; font-size: var(--ty-h-sm); line-height: 1; }
[dir="rtl"] .lg-doclist .chev { transform: scaleX(-1); }

.lg-crumb { margin: -16px 0 32px; }
.lg-crumb a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--grey); font-size: var(--ty-label); }
.lg-crumb a::before { content: "‹"; }
[dir="rtl"] .lg-crumb a::before { content: "›"; }
.lg-crumb a:hover { color: var(--ink); }
.lg-article { overflow-wrap: anywhere; }
.lg-article h2 { font-size: var(--ty-h-sm); line-height: var(--ty-h-sm-lh); font-weight: 400; margin: 40px 0 16px; }
.lg-article h3 { font-size: var(--ty-body); line-height: var(--ty-body-lh); font-weight: 400; margin: 28px 0 12px; }
.lg-article p { margin: 0 0 20px; }
.lg-article ul, .lg-article ol { margin: 0 0 20px; padding-inline-start: 24px; }
.lg-article li { margin: 0 0 8px; }
.lg-article strong { font-weight: 400; }
.lg-article a { text-decoration: underline; text-underline-offset: 3px; }
.lg-article .lg-updated { color: var(--grey); font-size: var(--ty-compact); margin-bottom: 24px; }
.lg-article .lg-scope {
  color: var(--grey); font-size: var(--ty-compact); line-height: var(--ty-compact-lh);
  border-block: 1px solid var(--hair); padding: 20px 0; margin: 24px 0 32px;
}
.lg-article hr { border: 0; border-top: 1px solid var(--hair); margin: 32px 0; }
.lg-footer {
  border-top: 1px solid var(--hair); padding: 32px var(--mx) max(32px, env(safe-area-inset-bottom));
  text-align: center; color: var(--grey); font-size: var(--ty-help); line-height: var(--ty-help-lh);
}
.lg-footer p { margin: 4px 0; }
.lg-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.lg-loader { display: none; justify-content: center; padding: 80px 0; }
.lg-loader.on { display: flex; }
.lg-ring { width: 28px; height: 28px; border: 1px solid var(--hair); border-top-color: var(--ink); border-radius: 50%; animation: lgspin .8s linear infinite; }
@keyframes lgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .lg-ring { animation: none; }
}
@media print {
  .lg-nav, .lg-crumb, .lg-lang { display: none !important; }
  .lg-main { max-width: none; padding: 0; }
}
@media (max-width: 480px) {
  .lg-nav { min-height: 72px; gap: 16px; }
  .lg-nav-logo img { height: 18px; }
  .lg-main { padding-top: 32px; padding-bottom: 48px; }
  .lg-hero { margin-bottom: 32px; }
}
