:root {
  --bg: #fbfcfe;
  --surface: #ffffff;
  --text: #222222;
  --heading: #172B4D;
  --muted: #6b7280;
  --border: #e9edf3;
  --accent: #0066FF;
  --accent-tint: #eaf1ff;
  --accent-ink: #ffffff;
  --danger: #e0245e;
  --danger-tint: #fdeaf0;
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: var(--font-arabic); }

a { color: var(--accent); text-decoration-color: rgba(0,102,255,.35); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: 880px; margin-inline: auto; padding-inline: 24px; }

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251,252,254,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-sep { color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 6px 10px; border-radius: 999px;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-tint); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  padding: 3px; gap: 2px; background: var(--surface);
}
.lang-toggle button {
  font-family: inherit; border: none; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* meta / hero */
.meta { padding-block: 28px 8px; }
h1.title {
  font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--heading);
  letter-spacing: -0.02em; text-wrap: balance; margin: 0;
}
.updated { margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lede { margin-top: 16px; font-size: 16px; color: var(--text); max-width: 62ch; }

/* toc */
.toc {
  margin-block: 28px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); padding: 18px 20px;
}
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 20px; counter-reset: toc; }
@media (max-width: 620px) { .toc ol { grid-template-columns: 1fr; } }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; padding: 4px 0; }
.toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; font-size: 13px; min-width: 1.4em; }
.toc a:hover { color: var(--accent); }

/* body copy */
.prose { padding-block: 8px 56px; max-width: 68ch; }
.prose section { padding-block: 26px; border-block-start: 1px solid var(--border); scroll-margin-top: 84px; }
.prose section:first-child { border-block-start: none; padding-block-start: 6px; }
.prose h2 { font-size: 19px; font-weight: 700; color: var(--heading); letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.prose p { margin: 0 0 12px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--heading); font-weight: 700; }
.prose ul { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 8px; }
.prose ul:last-child { margin-bottom: 0; }

.service-list { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.service-list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.service-list .name { font-weight: 700; color: var(--heading); font-size: 13.5px; flex-shrink: 0; }
.service-list .desc { color: var(--muted); font-size: 13.5px; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 6px; padding: 16px 20px; border-radius: 12px; background: var(--accent-tint);
}
.contact-card p { margin: 0; color: var(--text); font-size: 14px; }
.contact-card a.btn { font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 9px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; }

/* delete-account specific */
.step-card {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  padding: 20px 22px; margin-bottom: 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--heading); display: flex; align-items: center; gap: 10px; }
.step-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.callout {
  border-radius: 14px; padding: 18px 22px; margin: 0 0 24px;
  background: var(--danger-tint); border: 1px solid var(--border);
}
.callout h3 { margin: 0 0 8px; font-size: 15px; color: var(--danger); }
.callout ul { margin: 0; padding-inline-start: 20px; font-size: 14px; color: var(--text); }
.callout li { margin: 4px 0; }

.request-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-top: 22px;
  background: var(--danger-tint);
}
.request-card h2 { margin: 0 0 8px; font-size: 18px; color: var(--heading); }
.request-card p { margin: 0 0 16px; font-size: 14px; color: var(--text); max-width: 60ch; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.field textarea { min-height: 90px; resize: vertical; }
.request-submit {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  background: var(--danger); color: #fff; border: none; padding: 12px 20px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
}
.request-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.retain-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 13.5px; }
.retain-table th, .retain-table td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.retain-table th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }

footer.page-footer {
  border-block-start: 1px solid var(--border); padding-block: 22px 40px; color: var(--muted);
  font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  max-width: 880px; margin-inline: auto; padding-inline: 24px;
}

[hidden] { display: none !important; }

/* store badges: drawn after the official black App Store / Google Play
   badges, and always left-to-right like the originals, even on Arabic pages */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  direction: ltr; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3a3a3a; font-family: -apple-system, 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; }
.store-badge-small { font-size: 11px; line-height: 1.1; letter-spacing: .02em; }
.store-badge-big { font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { opacity: .5; pointer-events: none; }
