/*
 * css/legal.css — Shared styles of the legal pages (privacy policy and terms
 * of use, Arabic and English). Logical properties only, so one file serves
 * both directions. The home pages use css/styles.css.
 */
:root {
  --bg: #091224;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.74);
  --accent: #c5a059;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at top, rgba(197, 160, 89, 0.12), transparent 25%),
    linear-gradient(180deg, #091224 0%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
}
.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 999px;
  color: #e5c585;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}
.lang-switch:hover {
  border-color: var(--accent);
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--text);
}
.hero,
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
}
.hero { margin-bottom: 1rem; }
h1, h2 { margin: 0 0 1rem; font-family: "Tajawal", sans-serif; }
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #091224;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }
p, li { color: var(--muted); line-height: 1.9; }
.section + .section { margin-top: 1rem; }
ul { margin: 0; padding-inline-start: 1.2rem; }
.meta {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--text);
  font-size: 0.95rem;
}
a { color: #f3d79a; }
footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
