/* مسار — صفحات الخصوصية والشروط وحذف الحساب */
:root {
  --navy: #061A4A;
  --deep: #0A3FA8;
  --brand: #0092FF;
  --sky: #48ECFC;
  --bg: #F3F7FC;
  --card: #FFFFFF;
  --ink: #091E42;
  --mute: #4F5E78;
  --line: #E1E8F2;
  --chip: #E6F2FF;
  --chip-ink: #0A4FB0;
  --warn: #FFF6E5;
  --warn-ink: #7A4B00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --card: #131C2E; --ink: #E8EEF8; --mute: #A5B3CC;
    --line: #22304A; --chip: #16294A; --chip-ink: #8CC8FF;
    --warn: #2B2414; --warn-ink: #F3C46B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif; line-height: 1.9; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== الرأس ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(72,236,252,.30), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(0,146,255,.45), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, #0B2D7A 50%, var(--deep) 85%, var(--brand) 130%);
  padding: 28px 16px 64px;
}
.hero-in { max-width: 920px; margin: 0 auto; position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand .tile { width: 44px; height: 44px; border-radius: 13px; background: #fff; display: grid; place-items: center; }
.brand .tile img { width: 34px; height: 34px; }
.lang {
  display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 3px;
}
.lang button {
  font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: transparent;
  border: 0; border-radius: 999px; padding: 4px 14px; cursor: pointer; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--deep); }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.25; margin: 34px 0 8px; font-weight: 900; }
.hero p { margin: 0; color: #CFE6FF; font-size: 17px; max-width: 620px; }
.hero .robot {
  position: absolute; bottom: -78px; left: 0; height: 210px;
  filter: drop-shadow(0 18px 26px rgba(0,10,50,.45));
}
[dir="ltr"] .hero .robot { left: auto; right: 0; transform: scaleX(-1); }
.meta { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.meta span {
  font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}

/* ===== المحتوى ===== */
main { max-width: 920px; margin: -32px auto 0; padding: 0 16px 60px; position: relative; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 24px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(9,30,66,.05);
}
.toc ol { margin: 6px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
h2 { font-size: 22px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
h2 .n {
  flex: none; width: 32px; height: 32px; border-radius: 10px; font-size: 15px;
  background: var(--chip); color: var(--chip-ink); display: grid; place-items: center;
}
h3 { font-size: 17px; margin: 14px 0 4px; }
p { margin: 6px 0; }
ul { margin: 6px 0; padding-inline-start: 22px; }
li { margin: 3px 0; }
.mute { color: var(--mute); }
.note {
  background: var(--warn); color: var(--warn-ink); border-radius: 14px;
  padding: 12px 16px; margin: 10px 0; font-size: 15.5px;
}
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mute); font-weight: 700; font-size: 14px; }
td:first-child { font-weight: 700; white-space: nowrap; }

.cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  background: var(--brand); color: #fff; font-weight: 800; border-radius: 14px; padding: 10px 22px;
  margin: 4px 0; margin-inline-end: 8px;
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.cta.ghost { background: var(--chip); color: var(--chip-ink); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 44px; margin: 10px 0; min-height: 32px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile-link {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; color: var(--ink); min-height: 132px;
}
.tile-link:hover { text-decoration: none; border-color: var(--brand); }
.tile-link b { display: block; font-size: 19px; margin-bottom: 4px; }

footer { text-align: center; color: var(--mute); font-size: 14px; padding: 8px 16px 40px; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }

/* نسختان في الصفحة: العربية افتراضاً */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ar"] { display: none; }
html[lang="en"] [data-lang="en"] { display: revert; }
html[lang="en"] body { font-family: "Inter", "Cairo", system-ui, sans-serif; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 54px; }
  .hero .robot { display: none; }
  .toc ol { columns: 1; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; border-radius: 18px; }
  td:first-child { white-space: normal; }
}
@media print {
  .hero { background: none; color: var(--ink); }
  .hero p, .meta span { color: var(--ink); }
  .lang, .hero .robot { display: none; }
}

/* الأرقام في النسخة العربية: ١ ٢ ٣ */
[data-lang="ar"] ol:not(.steps) { list-style-type: arabic-indic; }
[data-lang="ar"] .steps li::before { content: counter(s, arabic-indic); }
