:root {
  color-scheme: dark;
  --card: #0a1730;
  --line: rgba(255, 255, 255, 0.12);
  --silver: #cbd5e1;
  --royal: #1e5fd9;
  --royal-bright: #2e7bff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050b1a;
  color: #e7eefa;
  font-family: "Cairo", "Tajawal", sans-serif;
}

a {
  color: #93c5fd;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 26, 0.92);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, #2e7bff, #0f2148);
  color: white;
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text .en {
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-text .ar {
  color: #d4af37;
  font-size: 12px;
}

.eyebrow {
  color: #d4af37;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.privacy-page,
.terms-page {
  min-height: calc(100vh - 76px);
}

.legal-language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-language-switch button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.legal-language-switch button[aria-pressed="true"] {
  border-color: var(--royal-bright);
  background: var(--royal);
  color: #fff;
}

[data-legal-lang][hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .legal-language-switch {
    gap: 4px;
  }

  .legal-language-switch button {
    padding: 6px 7px;
    font-size: 11px;
  }
}
