/* صفحات الخصوصية والدعم: مستقلة عن اللعبة (لا JS للعبة ولا عامل خدمة)، بألوان الواجهة وخطها المضمّن. */
@font-face {
  font-family: 'Baloo Bhaijaan 2';
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Baloo Bhaijaan 2';
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo-bhaijaan-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  --bg: #3a23a6;
  --bg-deep: #1c0f5c;
  --ink: #2b1660;
  --muted: #5d4a8f;
  --cream: #fff6df;
  --rim: #b797ff;
  --yellow: #ffd23f;
  --link: #5b2ee0;
  --font: 'Baloo Bhaijaan 2', 'SF Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--bg) 0%, var(--bg-deep) 100%) fixed;
  background-color: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}

header {
  max-width: 760px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.langs { display: flex; gap: 6px; }
.langs a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--rim);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.langs a[aria-current='true'] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

main {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--rim);
  border-radius: 24px;
  padding: 20px 22px 28px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
}

/* بلا JS تظهر اللغتان معاً؛ السكربت يُخفي غير المختارة */
.js section[data-lang]:not(.on) { display: none; }
:root:not(.js) section[data-lang] + section[data-lang] { border-top: 2px dashed var(--rim); margin-top: 24px; }

h1 { font-size: 28px; line-height: 1.3; margin: 4px 0 2px; }
h2 { font-size: 20px; line-height: 1.4; margin: 26px 0 6px; }
h3 { font-size: 17px; margin: 16px 0 4px; }
p, li { margin: 6px 0; }
ul { padding-inline-start: 22px; margin: 6px 0; }
.date { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
a { color: var(--link); font-weight: 700; overflow-wrap: anywhere; }
.box {
  background: #fff;
  border: 2px solid #e8dcc0;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 12px 0;
}
.mail { font-size: 19px; }

footer {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  color: #d9ccff;
  font-size: 14px;
}
footer a { color: #fff; }
