/* صملة legal site: one column, dark navy like the app (black into deep blue), IBM Plex Sans Arabic. */
:root {
  --bg-top: #03040b;
  --bg-bottom: #0b1033;
  --text: #f2efe6;
  --body: #c7cbef;
  --muted: #8a90c4;
  --line: #262b55;
  --card: rgba(5, 6, 18, 0.5);
  --card-border: #2e3260;
  --link: #b3a8f5;
  --gold: #d9b25e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(circle at 85% -5%, rgba(122, 140, 255, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-top) 0%, #070a1f 45%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--body);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
}

[lang="en"] body, body:lang(en) { line-height: 1.7; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--text);
  color: var(--bg-bottom);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
}
.brand img { width: 24px; height: 26px; display: block; }
.site-nav {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 14.5px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--text);
}

/* Content */
main { padding: 44px 0 56px; }

h1 {
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
}
.date {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 40px 0 10px;
}
h3 {
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
  margin: 26px 0 4px;
}
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold); }
strong { color: var(--text); font-weight: 600; }

.summary {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 0 0 8px;
}
.summary p:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  margin: 8px 0 8px;
}
.contact-card .email {
  display: inline-block;
  font-size: 19px;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-all;
}

.ltr { direction: ltr; unicode-bidi: isolate; }

/* Home */
.hero { text-align: center; padding: 30px 0 10px; }
.hero img { width: 72px; height: 78px; display: block; margin: 0 auto 18px; }
.hero h1 { font-size: 40px; margin-bottom: 8px; }
.hero p { color: var(--body); font-size: 17px; max-width: 460px; margin: 0 auto 30px; }
.links { list-style: none; padding: 0; margin: 0 auto; max-width: 460px; display: grid; gap: 10px; }
.links li { margin: 0; }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.links a:hover { border-color: #4e5390; }
.links a span { color: var(--muted); font-weight: 400; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-inline-start: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 18px; height: 20px; }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .site-nav { margin-inline-start: 0; width: 100%; gap: 4px 16px; }
  .site-nav .lang { margin-inline-start: auto; }
  main { padding-top: 32px; }
  h1 { font-size: 27px; }
  h2 { font-size: 18.5px; margin-top: 34px; }
  .hero h1 { font-size: 34px; }
  .site-footer nav { margin-inline-start: 0; width: 100%; }
}
