:root {
  --primary: #007882;
  --primary-dark: #004e54;
  --primary-soft: #e4f2f0;
  --paper: #f7f8f6;
  --white: #ffffff;
  --ink: #102a2d;
  --muted: #566a6c;
  --line: #e2e8e3;
  --line-strong: #c9d6d1;
  --font-en: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-md: 6px;
  --radius-lg: 8px;
  --header-height: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.25rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
::selection { background: var(--primary); color: #fff; }

.shell { width: min(1200px, 100% - clamp(2.5rem, 7vw, 7rem)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -5rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-md);
  background: var(--primary); color: #fff; font-size: 0.875rem; font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-height); }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { flex: none; width: 4.25rem; height: 2.75rem; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-text strong { font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.brand-text em {
  font-style: normal; font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  padding: 0.55rem 0.9rem; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--white);
  font-size: 0.8125rem; font-weight: 600; font-family: var(--font-ar);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 2.7rem; padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong); background: var(--white);
  border-radius: var(--radius-md); font-size: 0.8125rem; font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }

.legal { width: min(820px, 100% - clamp(2.5rem, 7vw, 7rem)); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }

.pill {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
}
h1 { margin-top: 0.8rem; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 650; line-height: 1.1; letter-spacing: -0.034em; }
.legal .effective { margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); }
.legal .intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 72ch; }

.legal section { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 72ch; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin-top: 0.6rem; padding-inline-start: 1.25rem; list-style: disc; }
.legal li { margin-top: 0.45rem; }
.legal a { color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.legal a:hover { color: var(--primary-dark); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-block: 1.5rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.875rem; }
.footer-nav a:hover { color: var(--primary); }
.footer-meta { font-size: 0.75rem; color: var(--muted); }

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
html[lang="ar"] :is(h1, h2, p, li, a, span, strong, button) { letter-spacing: normal; }
html[lang="ar"] .brand-text em { text-transform: none; letter-spacing: normal; }

@media (max-width: 640px) {
  :root { --header-height: 4.5rem; }
  .header-inner { gap: .75rem; }
  .brand { min-width: 0; gap: .5rem; }
  .header-actions { flex-shrink: 0; }
  .header-actions .btn { display: none; }
  .lang-toggle { min-height: 44px; }
  .brand img { width: 3.25rem; height: 2.35rem; }
  .brand-text em { display: none; }
  .legal { width: calc(100% - 2rem); }
  h1 { font-size: 1.9rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
