/* Public policy pages of قمة النماء (legal.qnca.co). Plain static files; no scripts, no trackers, no external fonts. */
@font-face {
  font-family: "Readex Pro";
  src: url("assets/ReadexPro-Variable.ttf") format("truetype");
  font-weight: 160 700;
  font-display: swap;
}

:root {
  --brand: #2e53a4;
  --brand-deep: #1d3a7c;
  --accent: #e03c2a;
  --ink: #16213a;
  --muted: #5b6680;
  --line: #e3e8f2;
  --paper: #ffffff;
  --page: #f4f6fb;
  --soft: #eef2fa;
  --on-brand: #ffffff;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8fb0ff;
    --brand-deep: #c5d5ff;
    --accent: #ff7a6b;
    --ink: #e8ecf6;
    --muted: #a3adc4;
    --line: #273149;
    --paper: #141b2c;
    --page: #0c111d;
    --soft: #1b2438;
    --on-brand: #0c111d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Readex Pro", "Noto Sans Arabic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-inner, main, footer {
  max-width: 820px;
  margin: 0 auto;
  padding-inline: 20px;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.3; letter-spacing: .04em; }

nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
nav.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color .2s cubic-bezier(.2, .7, .2, 1), color .2s cubic-bezier(.2, .7, .2, 1);
}
nav.tabs a:hover { background: var(--soft); color: var(--ink); }
nav.tabs a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }

main { padding-block: 36px 24px; }

.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 44px);
}

.doc + .doc { margin-top: 24px; }

h1 {
  font-size: clamp(26px, 4.6vw, 34px);
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.meta { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

h2 {
  font-size: 19px;
  margin: 30px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }

p { margin: 0 0 12px; max-width: 68ch; }
ul, ol { margin: 0 0 12px; padding-inline-start: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 17px; color: var(--ink); }

.note {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0;
}
.note strong { color: var(--brand-deep); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 46px;
  min-height: 34px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s cubic-bezier(.2, .7, .2, 1);
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.card b { display: block; font-size: 17px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; margin-inline-end: 8px; }

.en { direction: ltr; text-align: left; }
.en h2, .en p, .en li { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }

footer {
  color: var(--muted);
  font-size: 13px;
  padding-block: 10px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .top-inner { padding-block: 12px; }
  nav.tabs { width: 100%; }
  nav.tabs a { flex: 1; text-align: center; padding-inline: 8px; }
}

@media print {
  .top nav, footer { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
