/* Shared look for the inner pages (privacy, support): the home page's black,
   gold and cream, its fonts, set for long reading on a dark background. */
:root {
  --bg: #0c0c0c;
  --card: #141414;
  --card-2: #101010;
  --line: #262522;
  --gold: #d2ae64;
  --gold-soft: #b99a5c;
  --cream: #f3ead6;
  --text: #ddd8cd;
  --muted: #a39e93;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Kufam", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }
.display { font-family: "Reem Kufi", "Kufam", sans-serif; font-weight: 700; line-height: 1.35; }
html[lang="en"] .display { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Language toggle: without JavaScript both languages simply show. */
html.lang-ar [data-lang="en"], html.lang-en [data-lang="ar"] { display: none !important; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(12, 12, 12, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.topbar .brand img { width: 108px; }
.actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a1408; border: 1px solid var(--gold); }
.btn-gold:hover { color: #1a1408; background: #e0bf7a; }
.btn-line { background: transparent; color: var(--gold); border: 1px solid rgba(210, 174, 100, .6); }
.btn-line:hover { color: var(--cream); border-color: var(--gold); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Page head */
.page-head { text-align: center; padding: 48px 0 18px; }
.page-head .hex {
  width: 52px; height: 58px; margin: 0 auto 16px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
}
.page-head .hex svg { width: 24px; height: 24px; stroke: #17130a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-head h1 { font-size: clamp(30px, 6vw, 48px); color: var(--cream); }
.page-head h1 span { color: var(--gold); }
.page-head .meta { margin-top: 8px; }
.meta { color: var(--muted); font-size: 15px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.jump a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; font-size: 15px;
}
.jump a:hover { border-color: var(--gold-soft); }

/* Reading cards */
.doc { padding: 18px 0 24px; font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="en"] .doc { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.doc .btn { font-family: "Kufam", system-ui, sans-serif; }
.doc > section {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 28px 32px; margin-top: 22px; scroll-margin-top: 84px;
}
.doc h2 {
  font-family: "Reem Kufi", "Kufam", sans-serif; font-weight: 700;
  font-size: clamp(24px, 4.4vw, 32px); color: var(--gold); line-height: 1.4;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
html[lang="en"] .doc h2 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.doc h3 { color: var(--cream); font-size: 19.5px; font-weight: 700; margin: 28px 0 8px; line-height: 1.5; }
.doc p { margin: 8px 0 14px; }
.doc ul { margin: 8px 0 16px; padding-inline-start: 24px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--cream); }
.summary {
  background: radial-gradient(ellipse at 50% 0%, #1d1a12 0%, #15130f 75%);
  border: 1px solid rgba(210, 174, 100, .45);
  border-inline-start: 4px solid var(--gold);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0; color: var(--cream);
}
[dir="ltr"] { text-align: left; }
[dir="rtl"] { text-align: right; }
details {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin: 12px 0;
}
details[open] { border-color: rgba(210, 174, 100, .4); }
summary { cursor: pointer; font-weight: 700; color: var(--gold); }
pre {
  white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; direction: ltr;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cfc9bc; margin-top: 12px; max-height: 70vh; overflow: auto;
}

/* Support */
.contact-card {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1d1a12 0%, #121110 70%) !important;
  border-color: rgba(210, 174, 100, .55) !important;
}
.contact-card .mail { font-size: clamp(20px, 4.6vw, 26px); font-weight: 700; color: var(--cream); margin: 6px 0 18px; direction: ltr; }
.contact-card .btn { font-size: 16px; padding: 13px 24px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 40px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 4px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1408;
  font-size: 14px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.faq details { background: var(--card-2); }
.faq details p { margin: 10px 0 4px; }
.stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.stores a { display: block; border-radius: 10px; transition: transform .15s ease; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 48px; width: auto; border-radius: 9px; }

/* Footer */
.site-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 36px 0 48px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--gold); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--cream); text-decoration: underline; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .topbar .brand img { width: 88px; }
  .btn { padding: 9px 11px; font-size: 13.5px; }
  .btn .txt-long { display: none; }
  .doc > section { padding: 22px 18px 24px; border-radius: 18px; }
  .page-head { padding-top: 34px; }
}
@media print {
  .topbar, .jump, .site-foot { display: none; }
  html.lang-ar [data-lang="en"], html.lang-en [data-lang="ar"] { display: block !important; }
}
