/* Readable information pages share the site's brand, appearance and Arabic typography. */
.legal-shell { max-width: 1120px; padding-block: 38px 70px; }
.legal-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.legal-back { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 0 auto 27px; font-size: 12px; color: var(--muted); }
.legal-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.legal-shell[dir="rtl"] .legal-back .icon { transform: none; }
.legal-kicker { display: block; font-size: 11px; font-weight: 600; color: var(--accent-hover); }
.legal-hero h1 { font-size: calc((clamp(34px, 4.4vw, 52px)) * var(--site-heading-scale)); font-weight: 750; letter-spacing: -1.8px; margin: 12px 0 16px; }
.legal-intro { max-width: 650px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.legal-date { margin-top: 19px; display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; }
.legal-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 30px 0; }
.legal-tabs a { border: 1px solid var(--line); border-radius: 30px; padding: 10px 23px; background: var(--surface); color: var(--muted); font-size: 13px; }
.legal-tabs a:hover { color: var(--ink); border-color: var(--accent); }
.legal-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: white; }
.legal-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0 0 38px; }
@media (min-width: 681px) { .legal-highlights:has(> .legal-highlight:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-highlight { display: flex; gap: 11px; padding: 20px; border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.legal-highlight-icon { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: var(--accent-hover); background: var(--accent-soft); }
.legal-highlight-icon .icon { width: 15px; height: 15px; }
.legal-highlight h2 { font-size: 14px; line-height: 1.5; margin: 2px 0 8px; font-weight: 650; }
.legal-highlight p { font-size: 12px; line-height: 1.8; margin: 0; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.legal-contents { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 12px 7px; }
.legal-contents h2 { font-size: 13px; font-weight: 650; margin: 0 0 15px; }
.legal-contents ol { margin: 0; padding-inline-start: 22px; color: var(--muted); font-size: 12px; }
.legal-contents li { padding-inline-start: 3px; margin: 0 0 9px; }
.legal-contents a { display: inline-block; padding-block: 3px; line-height: 1.7; }
.legal-contents a:hover { color: var(--accent-hover); }
.legal-article { min-width: 0; padding: 32px 37px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; }
.legal-section { scroll-margin-top: 24px; }
.legal-section + .legal-section { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); }
.legal-section > h2 { display: flex; gap: 11px; align-items: baseline; font-size: calc((21px) * var(--site-heading-scale)); line-height: 1.5; letter-spacing: -.35px; margin: 0 0 17px; font-weight: 700; }
.legal-section > h2 > span { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--accent-hover); }
.legal-section p, .legal-section li { font-size: 14px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }
.legal-section p { margin: 0 0 15px; }.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-inline-start: 20px; }.legal-section li { padding-inline-start: 5px; margin-bottom: 12px; }.legal-section li::marker { color: var(--accent-hover); }
.legal-article a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.legal-shell a:focus-visible, .legal-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 3px; }
.legal-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; }
.legal-table-wrap table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 12px; line-height: 1.85; }
.legal-table-wrap th, .legal-table-wrap td { text-align: start; vertical-align: top; padding: 15px; border-bottom: 1px solid var(--line); }
.legal-table-wrap thead { background: var(--accent-soft); }.legal-table-wrap thead th { font-weight: 650; }
.legal-table-wrap tbody th { font-size: 11px; font-weight: 550; overflow-wrap: anywhere; width: 26%; }.legal-table-wrap td { color: var(--muted); width: 37%; }
.legal-table-wrap tr:last-child > * { border-bottom: 0; }
.legal-contact { border-radius: 15px; background: var(--accent-soft); padding: 23px; margin-top: 35px; }
.legal-contact h2 { font-size: 17px; margin: 0 0 8px; }.legal-contact p { font-size: 13px; line-height: 1.85; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.legal-shell[dir="rtl"] :is(h1,h2) { letter-spacing: 0; }.legal-shell[dir="rtl"] .legal-hero h1 { font-size: calc((clamp(28px, 3.8vw, 42px)) * var(--site-heading-scale)); }
.legal-shell[dir="rtl"] .legal-section > h2 { font-size: 18px; }.legal-shell[dir="rtl"] .legal-section li { font-size: 14px; line-height: 2.2; }
:root[data-appearance="dark"] .legal-page .legal-shell p { color: var(--muted); }
:root[data-appearance="dark"] .legal-shell :is(.legal-kicker,.legal-highlight-icon,.legal-section > h2 > span,.legal-article a,.legal-contents a:hover) { color: var(--accent-readable); }
@media(max-width: 900px) { .legal-layout { grid-template-columns: 190px minmax(0,1fr); gap: 20px; }.legal-article { padding: 26px; }.legal-highlight { padding: 16px; } }
@media(max-width: 680px) { .legal-shell { padding-block: 25px 40px; }.legal-highlights { grid-template-columns: 1fr; gap: 10px; margin-bottom: 25px; }.legal-highlight { padding: 15px 17px; }.legal-highlight h2 { margin-bottom: 3px; }.legal-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }.legal-contents { position: static; max-height: none; padding: 0 5px; }.legal-contents ol { columns: 2; column-gap: 25px; }.legal-contents li { break-inside: avoid; }.legal-article { padding: 24px 20px; border-radius: 18px; }.legal-section > h2 { font-size: calc((20px) * var(--site-heading-scale)); }.legal-tabs { margin-block: 24px; }.legal-tabs a { padding: 9px 17px; }.legal-contact { padding: 18px; } }
@media print { .site-header,.site-footer,.legal-back,.legal-tabs,.legal-contents,.legal-highlights { display: none; }.legal-shell { width: 100%; padding: 0; }.legal-layout { display: block; }.legal-article { border: 0; padding: 25px 0; }.legal-section { break-inside: avoid-page; }.legal-article a { color: inherit; }.legal-table-wrap { overflow: visible; }.legal-table-wrap table { min-width: 0; } }
@media screen and (max-width: 680px) {
    .legal-table-wrap table { min-width: 0; }
    .legal-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .legal-table-wrap tbody, .legal-table-wrap tr, .legal-table-wrap tbody th, .legal-table-wrap td { display: block; width: 100%; }
    .legal-table-wrap tr + tr { border-top: 1px solid var(--line); }
    .legal-table-wrap tbody th { background: var(--accent-soft); font-size: 12px; border: 0; }
    .legal-table-wrap td { border: 0; padding: 12px 15px; }
    .legal-table-wrap td::before { content: attr(data-label); display: block; margin-bottom: 5px; font-weight: 650; color: var(--ink); }
}

/* English policy copy keeps its typography inside every interface-language shell. */
.legal-shell[lang="en"] { --font-body: "Google Sans Flex", sans-serif; font-family: var(--font-body); }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] :is(h1,h2) { letter-spacing: normal; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] h1 { line-height: 1.2; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] h2 { line-height: 1.5; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] p { color: var(--muted); line-height: 1.9; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] .legal-intro { font-size: 16px; line-height: 1.85; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] .legal-highlight p { font-size: 12px; line-height: 1.8; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] .legal-section p { font-size: 14px; }
:root[data-font="noto-kufi-arabic"] .legal-shell[lang="en"] .legal-contact p { font-size: 13px; line-height: 1.85; }
