:root {
  color-scheme: dark;
  --ink: #f8f8fb;
  --muted: #a9adbd;
  --soft: #d7d9e5;
  --paper: #050610;
  --panel: rgba(17, 20, 35, 0.78);
  --panel-strong: rgba(22, 26, 44, 0.92);
  --line: rgba(255, 255, 255, 0.13);
  --blue: #2f83ff;
  --blue-strong: #006bff;
  --gold: #ffe3a1;
  --green: #5bd877;
  --doc-ink: #10131f;
  --doc-muted: #5e6475;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 22% 6%, rgba(0,107,255,0.22), transparent 27%),
    radial-gradient(circle at 86% 18%, rgba(255,227,161,0.14), transparent 24%),
    linear-gradient(180deg, #090a16 0%, #050610 42%, #080a14 100%);
  color: var(--ink);
  font-family: Inter, "Noto Kufi Arabic", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 72px 0 auto;
  height: 620px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,16,0.92), rgba(5,6,16,0.62)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 13px);
  opacity: 0.45;
  mask-image: linear-gradient(#000, transparent);
  animation: driftMesh 18s ease-in-out infinite alternate;
}
[dir="rtl"], [lang="ar"] { font-family: "Noto Kufi Arabic", Inter, system-ui, sans-serif; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(7, 8, 18, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  animation: headerDrop 700ms ease both;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  text-decoration: none;
}
.brand img {
  width: 126px;
  height: auto;
  display: block;
  transition: transform 240ms ease, filter 240ms ease;
}
.brand:hover img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 16px rgba(47,131,255,0.42));
}
.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.top-nav a:hover {
  color: #fff;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.language-toggle a {
  min-width: 44px;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
}
.language-toggle a.active {
  background: #fff;
  color: #080a14;
}

main {
  position: relative;
  min-height: 72vh;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px) 60px;
}
.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 900;
}
.pill {
  animation: softGlow 2.8s ease-in-out infinite alternate;
}
.eyebrow {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  color: var(--green);
  text-transform: uppercase;
}
.hero h1 {
  max-width: 980px;
  margin: 22px 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.06;
  letter-spacing: 0;
  animation: riseIn 760ms ease both;
}
.hero h1::first-line {
  color: var(--gold);
}
.hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.9;
  animation: riseIn 760ms ease 90ms both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.primary-button,
.secondary-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.primary-button::after,
.secondary-button::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -40%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0;
}
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}
.primary-button:hover::after,
.secondary-button:hover::after {
  opacity: 1;
  animation: shineSweep 760ms ease;
}
.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 48px rgba(47, 131, 255, 0.36);
}
.secondary-button {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.microcopy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.hero-panel,
.aside-card,
.doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-panel {
  padding: 22px;
  animation: riseIn 760ms ease 160ms both;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.panel-top strong { color: #fff; }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.compliance-grid span {
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.compliance-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(47,131,255,0.55);
  background: rgba(47,131,255,0.13);
}
.signal-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-strong), #2f83ff);
  color: #fff;
  background-size: 180% 180%;
  animation: gradientShift 6s ease infinite;
}
.signal-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}
.notice-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 clamp(20px, 5vw, 64px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.notice-band strong { color: var(--gold); }
.notice-band p { margin: 0; color: var(--soft); line-height: 1.8; }

.documents-section {
  padding: 64px clamp(20px, 5vw, 64px) 90px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
}
.search-box {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
  min-width: min(100%, 330px);
}
.search-box input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font: inherit;
  background: rgba(255,255,255,0.06);
  outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doc-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  min-height: 238px;
  padding: 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  animation: cardIn 620ms ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47,131,255,0.5);
  background: rgba(22, 26, 44, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(47,131,255,0.18);
}
.doc-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(0,107,255,0.17);
  color: var(--gold);
  font-weight: 900;
  transition: transform 220ms ease, background 220ms ease;
}
.doc-card:hover .doc-icon {
  transform: rotate(-4deg) scale(1.05);
  background: rgba(47,131,255,0.26);
}
.doc-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 21px;
  line-height: 1.35;
}
.doc-card p {
  color: var(--muted);
  line-height: 1.75;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.card-actions a {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}
.card-actions a:first-child {
  background: var(--blue);
  border-color: transparent;
}
.card-actions a:hover {
  transform: translateY(-1px);
}

.document-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 64px) 90px;
}
.document-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 14px;
}
.back-link {
  color: var(--soft);
  font-weight: 900;
  text-decoration: none;
}
.aside-card {
  padding: 20px;
  animation: riseIn 650ms ease both;
}
.aside-card h2 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 24px;
}
.aside-card p,
.aside-card.compact {
  color: var(--muted);
  line-height: 1.8;
}
.aside-card.compact {
  display: grid;
  gap: 8px;
}
.aside-card.compact a {
  color: #fff;
  font-weight: 900;
}
.legal-document {
  max-width: 960px;
  padding: clamp(24px, 5vw, 58px);
  background: #fff;
  color: var(--doc-ink);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: documentIn 720ms ease both;
}
.document-kicker {
  color: var(--blue-strong);
  font-weight: 900;
  margin-bottom: 12px;
}
.legal-document h1 {
  margin: 0 0 18px;
  color: var(--doc-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}
.legal-document h2 {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid #e5e7ef;
  color: var(--doc-ink);
  font-size: 27px;
}
.legal-document h3 {
  margin-top: 28px;
  color: var(--doc-ink);
  font-size: 20px;
}
.legal-document p,
.legal-document li,
.legal-document blockquote {
  color: #333849;
  line-height: 1.95;
  font-size: 16px;
}
.legal-document blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--blue-strong);
  background: #f4f7ff;
}
.legal-document blockquote p {
  margin: 6px 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid #e1e5f0;
  border-radius: 8px;
}
.legal-document table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}
.legal-document th,
.legal-document td {
  padding: 12px 14px;
  border-bottom: 1px solid #e1e5f0;
  border-inline-end: 1px solid #e1e5f0;
  text-align: inherit;
  vertical-align: top;
  line-height: 1.7;
}
.legal-document th {
  background: #f2f6ff;
  color: var(--blue-strong);
  font-weight: 900;
}
.legal-document tbody tr {
  transition: background 160ms ease;
}
.legal-document tbody tr:hover {
  background: #f7faff;
}
.legal-document tr:last-child td {
  border-bottom: 0;
}
.legal-document hr {
  border: 0;
  border-top: 1px solid #e5e7ef;
  margin: 26px 0;
}
.legal-document a {
  color: var(--blue-strong);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 64px);
  background: #050610;
  border-top: 1px solid var(--line);
  color: #fff;
}
.site-footer img {
  width: 132px;
  height: auto;
}
.site-footer p,
.site-footer span {
  margin: 8px 0 0;
  color: var(--muted);
}
.site-footer a {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .hero,
  .document-main {
    grid-template-columns: 1fr;
  }
  .document-aside {
    position: static;
  }
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .notice-band,
  .site-footer {
    display: grid;
  }
  .site-header {
    gap: 12px;
  }
  .brand img {
    width: 116px;
  }
  .top-nav {
    justify-content: start;
    gap: 6px;
  }
  .top-nav a {
    font-size: 13px;
    padding: 7px 9px;
  }
  .hero {
    min-height: auto;
    padding-top: 42px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .primary-button,
  .secondary-button {
    width: 100%;
  }
  .doc-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  .doc-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .legal-document {
    padding: 22px;
  }
}

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes documentIn {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shineSweep {
  from { left: -45%; }
  to { left: 120%; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes softGlow {
  from { box-shadow: 0 0 0 rgba(47,131,255,0); }
  to { box-shadow: 0 0 28px rgba(47,131,255,0.18); }
}

@keyframes driftMesh {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 18px, 0); }
}

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