:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --text: #17212b;
  --muted: #5b6875;
  --line: #d7e0e7;
  --blue: #0878d1;
  --blue-strong: #005ea8;
  --green: #167d65;
  --shadow: 0 12px 34px rgba(28, 48, 66, 0.09);
}

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}

html[lang="ar"] body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: var(--blue-strong); }

a:hover { color: var(--blue); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav,
.page,
.footer-inner {
  width: min(100% - 36px, 920px);
  margin-inline: auto;
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 67, 119, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a { text-decoration: none; }

.page { padding: 64px 0 72px; }

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.intro-icon {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow { text-transform: none; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: 0; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(28, 48, 66, 0.04);
}

.faq p,
.legal-copy p,
.legal-copy li { color: var(--muted); }

.faq p:last-child,
.legal-copy p:last-child { margin-bottom: 0; }

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}

.contact-box p { margin-bottom: 0; color: var(--muted); }

.button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button:hover { background: var(--blue-strong); color: white; }

.legal-header {
  max-width: 760px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.updated { color: var(--muted); font-size: 15px; }

.legal-copy {
  max-width: 760px;
  padding-top: 36px;
}

.legal-copy h2 { margin-top: 36px; }

.legal-copy ul { padding-inline-start: 24px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p { margin: 0; }

.footer-links { display: flex; gap: 16px; }

@media (max-width: 650px) {
  body { font-size: 16px; }
  .nav { min-height: 64px; }
  .brand span { display: none; }
  .nav-links { gap: 12px; font-size: 14px; }
  .page { padding-top: 42px; }
  .intro { grid-template-columns: 1fr; }
  .intro-icon { grid-row: 1; width: 92px; height: 92px; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-box,
  .footer-inner { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { padding: 24px 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141a;
    --surface: #151e25;
    --surface-muted: #111920;
    --text: #eef5fa;
    --muted: #aab7c1;
    --line: #2c3a44;
    --blue: #35a9ff;
    --blue-strong: #77c7ff;
    --green: #5dd4b3;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }
}

