:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #1a2230;
  --muted: #5b6678;
  --brand: #0b5cad;
  --brand-dark: #08457f;
  --border: #e2e7ee;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --bg-alt: #161d27;
    --text: #e7ecf3;
    --muted: #9aa6b8;
    --brand: #4f9ef0;
    --brand-dark: #82bbf5;
    --border: #263142;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-size: 16px; line-height: 1.2; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--brand); text-decoration: none; }
nav.main a.lang {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 12px; color: var(--text);
}

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.2; margin: 0 0 16px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
section h2 { font-size: 28px; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal li { margin-bottom: 6px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 600px) {
  header.site .wrap { padding-top: 10px; padding-bottom: 10px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
}
