:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f5f5f7;
  --surface-hover: #f0f7f6;
  --border: #e5e5e7;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --accent: #087f78;
  --accent-hover: #056a64;
  --accent-soft: #eaf6f5;
  --focus: #087f78;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
html[lang="ar"] [data-lang-content="en"], html[lang="en"] [data-lang-content="ar"] { display: none; }

.site-shell {
  width: min(calc(100% - 44px), 1024px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
}

.language-switch span { width: 1px; height: 13px; background: var(--border-strong); }
.language-switch a { padding: 7px 2px; text-decoration: none; transition: color 160ms ease; }
.language-switch a[aria-current="true"] { color: var(--accent); font-weight: 600; }

.home-main {
  flex: 1;
  padding: 104px 0 110px;
}

.hero { max-width: 720px; }
.accent-line { display: none; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 22px; color: var(--text); font-size: clamp(2.75rem, 6vw, 4.25rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1.03; }
html[lang="ar"] h1 { letter-spacing: -0.025em; line-height: 1.15; }
.hero p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.75; }

.navigation-grid {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--border);
}

.navigation-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.card-number { display: none; }
.card-copy strong, .card-copy > span { display: block; }
.card-copy strong { margin-bottom: 4px; color: var(--text); font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.card-copy > span { max-width: 580px; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.card-arrow { width: 20px; height: 20px; color: var(--accent); transition: transform 160ms ease; }
html[dir="rtl"] .card-arrow, html[dir="rtl"] .primary-button svg { transform: rotate(180deg); }

footer {
  padding: 26px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.legal-shell { width: min(calc(100% - 44px), 760px); }
.legal-shell main { flex: 1; }
.policy { padding: 58px 0 92px; }

.back-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 68px;
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link svg { width: 20px; height: 20px; }
.page-heading { max-width: 680px; margin-bottom: 60px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.page-heading h1, .support-card h1 { margin-bottom: 14px; font-size: clamp(2.4rem, 5vw, 3.5rem); }
.updated { margin-bottom: 34px; color: var(--subtle); font-size: 0.85rem; }
.lede { margin-bottom: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }

.policy-sections {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.policy-card {
  padding: 36px 0 38px;
  border-bottom: 1px solid var(--border);
}

.policy-card h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 17px; color: var(--text); font-size: 1.24rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; }
.policy-card h2 span { color: var(--subtle); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; }
.policy-card p, .policy-card ul { margin-bottom: 0; color: #424245; font-size: 1rem; line-height: 1.8; }
.policy-card ul { padding-inline-start: 1.25rem; }
.policy-card li::marker { color: var(--subtle); }
.policy-card li + li { margin-top: 10px; }
.contact-card { padding-bottom: 34px; }
.text-link, .email-address, .bottom-links a { color: var(--accent); text-decoration-color: rgba(8, 127, 120, 0.35); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.text-link { display: inline-block; margin-top: 7px; font-weight: 500; }
.bottom-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; font-size: 0.88rem; }

.support-shell { width: min(calc(100% - 44px), 720px); }
.support-main { flex: 1; padding: 72px 0 96px; }
.support-card { max-width: 650px; }
.support-card .back-link { margin-bottom: 72px; }
.support-mark { display: none; }
.support-intro { max-width: 590px; margin: 24px 0 16px; color: var(--muted); font-size: 1.08rem; line-height: 1.78; }
.email-address { display: inline-block; font-size: 1rem; }

.primary-button {
  width: fit-content;
  min-width: 176px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 34px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.primary-button svg { width: 18px; height: 18px; }
.support-card .bottom-links { margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--border); }

@media (hover: hover) {
  .wordmark:hover, .language-switch a:hover { color: var(--accent); }
  .back-link:hover, .text-link:hover, .email-address:hover, .bottom-links a:hover { color: var(--accent-hover); }
  .navigation-card:hover { background: var(--surface-hover); }
  html[dir="ltr"] .navigation-card:hover .card-arrow { transform: translateX(3px); }
  html[dir="rtl"] .navigation-card:hover .card-arrow { transform: rotate(180deg) translateX(3px); }
  .primary-button:hover { background: var(--accent-hover); }
}

@media (max-width: 640px) {
  .site-shell, .legal-shell, .support-shell { width: min(calc(100% - 36px), 1024px); }
  .site-header { min-height: 62px; }
  .home-main { padding: 70px 0 76px; }
  h1 { font-size: 42px; }
  .navigation-grid { margin-top: 54px; }
  .navigation-card { min-height: 112px; gap: 18px; padding: 24px 2px; }
  .policy { padding: 38px 0 62px; }
  .back-link, .support-card .back-link { margin-bottom: 50px; }
  .page-heading { margin-bottom: 46px; }
  .page-heading h1, .support-card h1 { font-size: 38px; }
  .policy-card { padding: 30px 0 32px; }
  .support-main { padding: 42px 0 64px; }
  .support-intro { margin-top: 20px; }
  .primary-button { width: 100%; }
  .support-card .bottom-links { margin-top: 48px; }
}

@media (max-width: 380px) {
  .site-shell, .legal-shell, .support-shell { width: min(calc(100% - 28px), 1024px); }
  .wordmark { font-size: 1rem; }
  .language-switch { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
