/* Zimam: the public pages. Arabic first, right to left, and the
   app's own colours and font (Tahoma then Arial, as the app uses). No fonts,
   scripts or images from anywhere else: the pages are three files and this
   stylesheet. */

:root {
  --paper: #f6f6f9;
  --card: #ffffff;
  --line: #e6e7ec;
  --title: #0f1115;
  --ink: #1b1f2a;
  --muted: #656a7a;
  --accent: #e8700f;
  --accent-strong: #d95f00;
  --accent-soft: #fff0e3;
  --mint-soft: #e8f7ee;
  --mint-line: #16a34a;
  --mint-ink: #15803d;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e121b;
    --card: #171c27;
    --line: #252b38;
    --title: #f4f5f8;
    --ink: #e6e8ee;
    --muted: #9aa1b2;
    --accent: #ff8a2a;
    --accent-strong: #ff7a10;
    --accent-soft: #3a2614;
    --mint-soft: #15301f;
    --mint-line: #22c55e;
    --mint-ink: #4ade80;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--title); font-weight: bold; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }

nav.top-links { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }

nav.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 10px;
  border-radius: 10px;
}

nav.top-links a:hover { color: var(--accent); background: var(--accent-soft); }
nav.top-links a[aria-current='page'] { color: var(--accent); font-weight: bold; }

.hero { padding: 56px 0 16px; text-align: center; }
.hero img.mark { width: 92px; height: 92px; border-radius: 22px; }
.hero h1 { font-size: 34px; line-height: 1.45; margin: 18px 0 6px; color: var(--title); }
.hero p.lede { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 620px; }

.note {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: bold;
}

main { padding-bottom: 40px; }

section { margin-top: 40px; }

h2 { font-size: 22px; color: var(--title); margin: 0 0 12px; line-height: 1.5; }
h3 { font-size: 17px; color: var(--title); margin: 22px 0 6px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy-card {
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
  padding: 20px;
}

.privacy-card h2 { color: var(--mint-ink); }
.privacy-card li { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: var(--card); color: var(--title); }

ol, ul { padding-inline-start: 22px; }
li { margin-bottom: 10px; }

a { color: var(--accent-strong); }

.small { font-size: 14px; color: var(--muted); }

.en {
  direction: ltr;
  text-align: left;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.en h2 { font-size: 19px; }

footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  margin-top: 48px;
  padding-block: 22px;
  font-size: 14px;
  color: var(--muted);
}

footer .wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer .spacer { margin-inline-start: auto; }

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 27px; }
  .hero p.lede { font-size: 16.5px; }
  body { font-size: 15.5px; }
}
