:root {
  --bg: #fbf9f4;
  --bg-warm: #fff6ec;
  --surface: #ffffff;
  --panel: #241e6b;
  --panel-2: #362c9c;
  --panel-text: #ffffff;
  --text: #211f3a;
  --text-muted: #5f5d78;
  --accent: #f15a22;
  --accent-deep: #d8481a;
  --accent-soft: #ffe7db;
  --border: #ece9f5;

  /* playful kid-school palette — used for decoration + category theming */
  --c-blue: #37b6f0;
  --c-blue-soft: #e2f4fd;
  --c-yellow: #ffc93c;
  --c-yellow-soft: #fff3d4;
  --c-mint: #24c3ac;
  --c-mint-soft: #d8f5f0;
  --c-pink: #ff6f9c;
  --c-pink-soft: #ffe3ec;
  --c-grape: #7b6ef6;
  --c-grape-soft: #ebe8ff;
  --c-lime: #86c93b;
  --c-lime-soft: #edf7dd;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 10px 24px -14px rgba(36, 30, 107, 0.28);
  --shadow: 0 26px 50px -22px rgba(36, 30, 107, 0.32);

  --font-display: "Baloo Bhaijaan 2", "Cairo", sans-serif;
  --font-body: "Cairo", "IBM Plex Sans Arabic", "Tahoma", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111f;
    --bg-warm: #191426;
    --surface: #1e1a30;
    --panel: #0d0b1c;
    --panel-2: #1c1746;
    --panel-text: #ffffff;
    --text: #f0eff7;
    --text-muted: #a9a6c4;
    --accent: #ff7a45;
    --accent-deep: #f15a22;
    --accent-soft: #33223a;
    --border: #2c2946;

    --c-blue-soft: #16283a;
    --c-yellow-soft: #322a12;
    --c-mint-soft: #12302c;
    --c-pink-soft: #331d28;
    --c-grape-soft: #221f3f;
    --c-lime-soft: #212c14;

    --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
    --shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; }

h1, h2, h3, p, li, a, span { overflow-wrap: break-word; }

html { direction: rtl; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* ===== legal pages (privacy / terms / delete-account) ===== */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 32px) 80px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.org-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.org-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.28;
  text-wrap: balance;
  margin: 0 0 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px dashed var(--border);
  font-variant-numeric: tabular-nums;
}

.meta span b {
  color: var(--text);
  font-weight: 600;
}

.lede {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 44px;
  max-width: 62ch;
}

section.block {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

section.block:first-of-type { border-top: none; padding-top: 0; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--accent);
  transform: rotate(12deg);
  flex-shrink: 0;
}

p.body-text {
  margin: 0;
  color: var(--text-muted);
  max-width: 64ch;
  font-size: 15.5px;
}

.contact {
  margin-top: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.contact h2 { color: var(--text); }
.contact h2::before { background: var(--accent); }
.contact p { color: var(--text); }

nav.crosslink { margin-top: 4px; }

nav.crosslink a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

nav.crosslink a:hover { text-decoration: underline; }

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  footer { flex-direction: column; }
}
