@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&display=swap');

:root { color-scheme: light; --cream: #F1EADC; --paper: #FFFDF7; --green: #14503A; --green-dark: #0E3829; --ink: #2C2A24; --muted: #6E6754; --gold: #B6862B; --line: #E2D9C4; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #F1EADC 0%, #F7F2E8 44%, #EEE5D5 100%); color: var(--ink); font-family: 'IBM Plex Sans Arabic', sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.legal-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.legal-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(44,42,36,.1); background: rgba(241,234,220,.86); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.legal-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-brand { display: inline-flex; align-items: center; gap: 13px; }
.legal-brand-logo { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: linear-gradient(145deg, #FFFDF7, #EDE3CE); box-shadow: 0 12px 24px -16px rgba(44,42,36,.7); }
.legal-brand-logo img { width: 35px; height: 35px; object-fit: contain; }
.legal-brand-name { display: block; color: var(--green); font-family: 'Noto Kufi Arabic', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.6; }
.legal-brand-kicker { display: block; color: #7F775F; font-size: 9px; letter-spacing: .12em; line-height: 1.5; }
.legal-back { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: rgba(255,253,247,.7); font-size: 13px; font-weight: 600; transition: color .25s ease, background .25s ease, transform .25s ease; }
.legal-back:hover { color: var(--green-dark); background: var(--paper); transform: translateY(-1px); }
.legal-back svg { width: 17px; height: 17px; flex: 0 0 17px; }
html[dir="ltr"] .legal-back svg { transform: scaleX(-1); }
.legal-intro { padding: 72px 0 42px; }
.legal-eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 14px; font-weight: 600; line-height: 1.8; }
.legal-intro h1 { max-width: 800px; margin: 0 0 16px; color: var(--green); font-family: 'Noto Kufi Arabic', sans-serif; font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; line-height: 1.55; letter-spacing: normal; }
.legal-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 2.05; }
.legal-layout { display: grid; grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 68px); align-items: start; padding-bottom: 88px; }
.legal-toc { position: sticky; top: 108px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,247,.7); box-shadow: 0 24px 48px -38px rgba(44,42,36,.5); }
.legal-toc-title { padding: 17px 19px; border-bottom: 1px solid var(--line); color: var(--gold); font-family: 'Noto Kufi Arabic', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.7; }
.legal-toc a { display: block; padding: 12px 19px; border-bottom: 1px solid rgba(226,217,196,.72); color: var(--muted); font-size: 13px; line-height: 1.8; transition: color .22s ease, background .22s ease, padding .22s ease; }
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { padding-right: 23px; color: var(--green); background: rgba(20,80,58,.05); }
.legal-card { min-width: 0; padding: clamp(26px, 4vw, 50px); border: 1px solid rgba(255,255,255,.94); border-radius: 26px; background: rgba(255,253,247,.88); box-shadow: 0 30px 65px -48px rgba(44,42,36,.65), inset 0 1px 0 #fff; }
.legal-card-meta { margin-bottom: 29px; padding-bottom: 22px; border-bottom: 1px solid rgba(226,217,196,.9); color: #8B826D; font-size: 12px; line-height: 1.8; }
.legal-section { scroll-margin-top: 110px; padding: 0 0 27px; margin: 0 0 28px; border-bottom: 1px solid rgba(226,217,196,.72); }
.legal-section:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; color: var(--green); font-family: 'Noto Kufi Arabic', sans-serif; font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.7; letter-spacing: normal; }
.legal-section h2 span { flex: 0 0 auto; color: var(--gold); font-size: 13px; font-weight: 600; }
.legal-section p { margin: 0; color: #544E41; font-size: 15.5px; line-height: 2.08; text-wrap: pretty; }
.legal-notice { margin-top: 36px; padding: 19px 21px; border: 1px solid rgba(182,134,43,.2); border-radius: 16px; color: #62583F; background: linear-gradient(145deg, rgba(242,225,170,.26), rgba(255,253,247,.72)); font-size: 14px; line-height: 2; }
.legal-footer { color: rgba(241,234,220,.78); background: linear-gradient(135deg, #14503A, #0C3124); }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 20px 0; font-size: 12px; line-height: 1.9; }
.legal-footer a { color: #F0D486; }
.legal-footer a:hover { color: #FFF8EC; }
@media (max-width: 760px) {
  .legal-shell { width: min(100% - 32px, 620px); }
  .legal-header-inner { min-height: 72px; }
  .legal-brand-name { font-size: 13px; }
  .legal-brand-kicker { display: none; }
  .legal-back { padding: 8px 12px; font-size: 11.5px; }
  .legal-intro { padding: 48px 0 30px; }
  .legal-intro h1 { font-size: clamp(27px, 8vw, 38px); }
  .legal-lead { font-size: 15px; line-height: 2; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 58px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; }
  .legal-toc-title { width: 100%; }
  .legal-toc a { flex: 1 1 46%; padding: 10px 14px; }
  .legal-toc a:hover { padding-right: 18px; }
  .legal-card { padding: 24px 20px; border-radius: 20px; }
  .legal-section p { font-size: 14.5px; line-height: 2; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}
