/* Fajr IScore public pages (privacy policy, account deletion). No scripts, no external resources. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0d9488;
  --accent: #b7791f;
  --notice: #ecfeff;
  --warning: #fff7ed;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a2b;
    --surface: #0f2537;
    --border: #143246;
    --text: #f8fafc;
    --muted: #94a3b8;
    --brand: #14b8a6;
    --accent: #f4c978;
    --notice: #0f3340;
    --warning: #2e2416;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 28px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav.languages { display: flex; gap: 6px; flex-wrap: wrap; }

nav.languages a {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}

nav.languages a[aria-current="page"] {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 16px 0 4px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }

p, li { overflow-wrap: anywhere; }
ul, ol { padding-inline-start: 22px; }
li { margin: 4px 0; }

a { color: var(--brand); }

.meta { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}

.notice { background: var(--notice); }
.warning { background: var(--warning); }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 40px;
  margin: 12px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }

footer {
  margin-top: 40px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

[dir="rtl"] body { line-height: 1.8; }
