:root {
  --bg: #07071c;
  --surface: #12123a;
  --surface-2: #0d0d2b;
  --line: rgba(166, 166, 200, .16);
  --text: #eeeef6;
  --muted: #a6a6c8;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, .14);
  --navy: #00004c;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f5fb; --surface: #ffffff; --surface-2: #ececf6; --line: rgba(20, 20, 58, .1); --text: #14143a; --muted: #5d5d80; --gold-soft: rgba(201, 162, 39, .16); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; }

/* Top bar: brand and links on one side, the business actions on the other. */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100% - 1100px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top-start { display: flex; align-items: center; gap: 26px; }
nav.links { display: flex; align-items: center; gap: 18px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover, nav.links a.current { color: var(--text); }
.actions { display: flex; align-items: center; gap: 8px; }
.lang { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .9rem; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.btn.sm { padding: 6px 14px; font-size: .9rem; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.muted { border-color: var(--line); color: var(--muted); cursor: default; }

main { display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
section.block { padding: 64px 0; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 8px; line-height: 1.4; }
.section-head p { color: var(--muted); margin: 0; }

.hero { text-align: center; padding: 72px 0 64px; }
.hero-icon { width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 10px 40px rgba(201, 162, 39, .25); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 22px 0 10px; line-height: 1.35; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--gold-soft); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

/* Numbered steps (how to start). */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* A wide call-to-action band. */
.band { background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 24px; padding: 36px 24px; text-align: center; }
.band h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.band p { margin: 0 auto; color: var(--muted); max-width: 620px; }
.mail { color: var(--gold); font-weight: 700; font-size: 1.25rem; text-decoration: none; direction: ltr; unicode-bidi: isolate; }

/* Two columns: text beside a list of points. */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.split h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.4; }
.split > div > p { color: var(--muted); margin: 0 0 18px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.points b { display: block; }
.points span { color: var(--muted); font-size: .95rem; }

footer.site { border-top: 1px solid var(--line); margin-top: 0; padding: 40px 0 24px; color: var(--muted); font-size: .95rem; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.foot h4 { color: var(--text); margin: 0 0 8px; font-size: 1rem; }
.foot a { display: block; text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--text); }
.copy { text-align: center; margin-top: 28px; font-size: .85rem; }

/* Narrow screens: the text links drop out of the bar (they are in the footer
   and on the page itself), the business actions stay. */
@media (max-width: 760px) {
  nav.links { display: none; }
  .top { padding: 10px 16px; }
  .brand span { font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .actions .btn.ghost { display: none; }
}

/* Document pages (privacy, terms, deletion, child safety). */
.doc-page { max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; white-space: pre-wrap; }
.doc-md { white-space: normal; }
.doc-md h1, .doc-md h2, .doc-md h3 { margin: 1.2em 0 .4em; line-height: 1.4; }
.doc-md h1:first-child { margin-top: 0; }
.doc-md a { color: var(--gold); }
.doc-md table { border-collapse: collapse; width: 100%; }
.doc-md td, .doc-md th { border: 1px solid var(--muted); padding: 6px 8px; }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1.4fr repeat(4, 1fr); }
}
