:root {
  --bg-primary: #060713;
  --bg-secondary: #0d1122;
  --card-bg: rgba(16, 19, 42, 0.88);
  --card-border: rgba(174, 132, 255, 0.24);
  --text-primary: #f5f7fb;
  --text-muted: #beb8d9;
  --accent-purple: #c45bf8;
  --accent-purple-strong: #7c3aed;
  --accent-orange: #ff8a3d;
  --accent-gradient: linear-gradient(100deg, #ff8a3d 0%, #c45bf8 58%, #7c3aed 100%);
  --header-bg: linear-gradient(90deg, rgba(74, 35, 96, 0.55) 0%, rgba(17, 17, 52, 0.82) 45%, rgba(19, 23, 61, 0.74) 100%);
  --shadow-soft: 0 22px 50px rgba(5, 7, 22, 0.48);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.public-page {
  font-family: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 15% -10%, rgba(255, 138, 61, 0.19), transparent 35%),
              radial-gradient(circle at 80% -8%, rgba(124, 58, 237, 0.26), transparent 43%),
              var(--bg-primary);
}
body.public-page[dir="rtl"] { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.site-header {
  position: sticky; top: 12px; z-index: 10;
  margin: 14px auto 20px;
  width: min(1140px, 94vw);
  border: 1px solid rgba(182, 107, 255, 0.35);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-symbol { display: inline-flex; align-items: center; }
.logo-symbol span { width: 24px; height: 24px; border-radius: 50%; display: block; margin-inline-start: -9px; }
.logo-symbol span:first-child { margin-inline-start: 0; }
.logo-symbol span:nth-child(1) { background: linear-gradient(140deg, #5a35ff, #7c3aed); }
.logo-symbol span:nth-child(2) { background: linear-gradient(145deg, #8841ff, #f06b54); }
.logo-symbol span:nth-child(3) { background: linear-gradient(145deg, #f06b54, #ff983d); }
.logo-text { font-size: 1.25rem; font-weight: 700; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-nav a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: #fff1e9; }
.login-button {
  padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(177, 144, 255, 0.32);
  background: linear-gradient(120deg, rgba(24, 25, 56, 0.6), rgba(12, 13, 37, 0.82)); color: var(--text-primary); font-weight: 600;
}
main { padding: 26px 0 50px; }
.policy-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 42px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.policy-card h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4.8vw, 2.2rem); }
.effective-date { color: var(--text-muted); margin: 0 0 20px; font-size: 0.95rem; }
.policy-card p, .policy-card li { line-height: 1.74; color: #f1effb; }
.policy-card ul { margin: 0 0 14px; padding-inline-start: 22px; }
.support-link { color: #ffd7be; text-decoration: underline; text-decoration-color: rgba(255, 138, 61, 0.7); text-underline-offset: 2px; }
.footer {
  border-top: 1px solid rgba(174, 132, 255, 0.18);
  margin-top: 34px;
  padding: 22px 0 34px;
}
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer small { color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: #d9d0ff; font-size: 0.94rem; }
.footer-links a:hover { color: #ffd8c2; }
@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; padding-top: 6px; }
}

.lang-switch { display:flex; gap:8px; }
.lang-option { color: var(--text-muted); border:1px solid rgba(177,144,255,.32); border-radius:10px; padding:6px 10px; font-weight:700; font-size:.84rem; }
.lang-option.active { color:#fff1e9; border-color: rgba(255,138,61,.65); }
.footer-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:22px; align-items:flex-start; }
.footer-grid h3 { margin:0 0 10px; font-size:1rem; }
.footer-grid a { display:block; margin: 0 0 8px; color:#d9d0ff; font-size:.94rem; }
.support-link--footer { direction:ltr; unicode-bidi:embed; }
html[dir="rtl"] .site-header .container { flex-direction: row-reverse; }
html[dir="rtl"] .site-nav { flex-direction: row-reverse; }
html[dir="rtl"] .policy-card, html[dir="rtl"] .footer, html[dir="rtl"] .footer-grid { text-align:right; }
html[dir="rtl"] .policy-card ul { padding-inline-start:0; padding-inline-end:22px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
