:root {
  --bg: #050508;
  --text: rgba(248, 248, 252, 0.96);
  --muted: rgba(200, 200, 210, 0.72);
  --accent: #00ffff;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(8, 10, 16, 0.62);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(5, 5, 8, 0.28) 0%, rgba(5, 5, 8, 0.62) 45%, rgba(5, 5, 8, 0.88) 100%),
    url("assets/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #b8ffff;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.lang-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: rgba(0, 255, 255, 0.16);
  color: var(--text);
}

.page-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 4rem;
}

.policy-card {
  padding: 1.5rem 1.4rem 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rise 0.7s var(--ease) both;
}

.page-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-meta {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-card h2 {
  margin: 1.7rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.policy-card p,
.policy-card li {
  color: rgba(230, 230, 238, 0.92);
}

.policy-card ul {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}

.policy-card li + li {
  margin-top: 0.35rem;
}

.policy-note {
  margin: 1.2rem 0;
  padding: 0.95rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: rgba(0, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
}

html[dir="rtl"] .policy-note {
  border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .page-title,
html[dir="rtl"] .policy-card h2 {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
  letter-spacing: 0;
}

.lang-panel[hidden] {
  display: none !important;
}

.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  .site-footer {
    padding-inline: 1rem;
  }

  .policy-card {
    padding: 1.2rem 1rem 1.6rem;
  }
}
