/* Dktor legal site: the app's own palette (pine + mint on warm porcelain, deep pine at night).
   Calm long-form type, one accent. Logical properties throughout, so Arabic and Kurdish
   (right-to-left) mirror without a second stylesheet. No scripts, no third-party requests:
   the fonts are bundled. Copied from Aura's website/ and re-coloured. */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/Manrope-Regular.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/Manrope-Bold.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/Manrope-ExtraBold.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 400; font-display: swap; src: url('fonts/NotoSansArabic-Regular.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 700; font-display: swap; src: url('fonts/NotoSansArabic-Bold.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 800; font-display: swap; src: url('fonts/NotoSansArabic-ExtraBold.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: dark;
  --canvas: #0b1715;
  --canvas-deep: #07100e;
  --surface: #13221f;
  --surface-hi: #172925;
  --text: #eaf2ef;
  --text-dim: #a6b6b1;
  --text-faint: #7d8f89;
  --volt: #6be3c6;
  --on-volt: #07100e;
  --accent-text: #6be3c6;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.17);
  --shadow: rgba(0, 0, 0, 0.45);
  --glow-a: rgba(107, 227, 198, 0.1);
  --glow-b: rgba(255, 122, 92, 0.08);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Manrope', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --measure: 46rem;
  --r-card: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f4f1eb;
    --canvas-deep: #eae5db;
    --surface: #ffffff;
    --surface-hi: #faf8f4;
    --text: #0b201d;
    --text-dim: #4b5b57;
    --text-faint: #66746f;
    --volt: #0d5c50;
    --on-volt: #ffffff;
    --accent-text: #0d5c50;
    --hairline: rgba(11, 32, 29, 0.1);
    --hairline-strong: rgba(11, 32, 29, 0.2);
    --shadow: rgba(24, 48, 43, 0.14);
    --glow-a: rgba(82, 203, 174, 0.18);
    --glow-b: rgba(242, 96, 63, 0.07);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(60rem 28rem at 8% -6%, var(--glow-b), transparent 70%),
    radial-gradient(44rem 22rem at 100% 0%, var(--glow-a), transparent 70%),
    var(--canvas);
  background-attachment: fixed;
}
:lang(ar) body, :lang(ckb) body { line-height: 1.95; }
::selection { background: var(--volt); color: var(--on-volt); }

a { color: var(--accent-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--on-volt);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ── top bar ── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--hairline);
}
.top__in {
  max-width: 64rem;
  margin-inline: auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.mark { width: 2rem; height: 2rem; border-radius: 0.55rem; box-shadow: 0 6px 18px -6px var(--shadow); }
.top__nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-inline-start: auto; }
.top__nav a, .langs a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.top__nav a:hover, .langs a:hover { color: var(--text); background: var(--hairline); }
.top__nav a[aria-current] { color: var(--on-volt); background: var(--volt); }
.langs {
  display: inline-flex;
  padding: 0.15rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}
.langs a { padding: 0.2rem 0.7rem; font-size: 0.85rem; }
.langs a[aria-current] { color: var(--text); background: var(--hairline-strong); }

/* ── page ── */
.page { flex: 1; width: 100%; max-width: var(--measure); margin-inline: auto; padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 4rem; }
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:lang(ar) .eyebrow, :lang(ckb) .eyebrow { font-family: var(--sans); letter-spacing: 0; font-size: 0.9rem; font-weight: 700; }
h1 { margin: 0 0 0.6rem; font-size: clamp(2.1rem, 6.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
:lang(ar) h1, :lang(ckb) h1 { line-height: 1.35; letter-spacing: 0; }
.meta { margin: 0 0 1.4rem; color: var(--text-faint); font-size: 0.92rem; }
.lead { margin: 0 0 1.4rem; font-size: 1.2rem; line-height: 1.6; color: var(--text-dim); }
.lang-note { margin: 0 0 1.4rem; padding: 0.7rem 1rem; border-radius: 12px; background: var(--hairline); color: var(--text-dim); font-size: 0.95rem; }

/* ── home ── */
.hero { padding-block-end: 2rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); max-width: 14ch; }
:lang(ar) .hero h1, :lang(ckb) .hero h1 { max-width: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: 0 18px 40px -26px var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--volt); }
.card h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.98rem; line-height: 1.55; }
.card__go { margin-top: 0.8rem; font-weight: 800; color: var(--accent-text); }
.card__go::after { content: ' \2192'; }
:dir(rtl) .card__go::after { content: ' \2190'; }

/* ── documents ── */
.doc__head { margin-block-end: 1.6rem; }
.summary {
  margin-block: 0 1.6rem;
  padding: 1.2rem 1.4rem 1.1rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  border-inline-start: 5px solid var(--volt);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
}
.summary h2 { margin: 0 0 0.5rem; font-size: 1.05rem; letter-spacing: 0.01em; }
.summary ul { margin: 0; }
.toc {
  margin-block: 0 2.4rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
}
.toc h2 { margin: 0 0 0.5rem; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
:lang(ar) .toc h2, :lang(ckb) .toc h2 { font-family: var(--sans); letter-spacing: 0; font-size: 0.95rem; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2rem; counter-reset: toc; }
.toc li { break-inside: avoid; counter-increment: toc; padding-block: 0.12rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 2rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.toc a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.97rem; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

section { margin-block: 2.6rem 0; scroll-margin-top: 5rem; }
section > h2 { margin: 0 0 0.8rem; font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
:lang(ar) section > h2, :lang(ckb) section > h2 { letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1rem; }
p, li { max-width: 68ch; }
:lang(ar) p, :lang(ar) li, :lang(ckb) p, :lang(ckb) li { max-width: 64ch; }
strong { font-weight: 800; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--hairline); }

ul, ol { margin: 0 0 1.1rem; padding-inline-start: 0; list-style: none; }
li { position: relative; margin-block-end: 0.6rem; padding-inline-start: 1.6rem; }
ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.2rem;
  top: 0.78em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 22%, transparent);
}
ol { counter-reset: step; }
ol > li { counter-increment: step; padding-inline-start: 2.6rem; }
ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--volt);
  color: var(--on-volt);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.toc ol > li { padding-inline-start: 0; }
.toc ol > li::before { all: unset; content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 2rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); position: static; }

.note {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  border-inline-start: 4px solid var(--volt);
  background: var(--surface);
  color: var(--text-dim);
}

/* ── tables ── */
.table-wrap { margin: 1rem 0 1.4rem; border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.55; }
th, td { padding: 0.8rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--hairline); }
tbody tr:last-child td { border-block-end: 0; }
thead th { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); background: var(--surface-hi); }
:lang(ar) thead th, :lang(ckb) thead th { font-family: var(--sans); letter-spacing: 0; font-size: 0.9rem; }
td:first-child { font-weight: 800; white-space: nowrap; }
td { color: var(--text-dim); }
td:first-child { color: var(--text); }

@media (max-width: 40rem) {
  .top__nav { margin-inline-start: 0; width: 100%; order: 3; }
  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 0.9rem 1rem; border-block-end: 1px solid var(--hairline); }
  tbody tr:last-child { border-block-end: 0; }
  td { padding: 0.15rem 0; border: 0; }
  td:first-child { white-space: normal; font-size: 1.05rem; padding-block-end: 0.3rem; }
  td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-block-start: 0.35rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  :lang(ar) td:not(:first-child)::before, :lang(ckb) td:not(:first-child)::before { font-family: var(--sans); letter-spacing: 0; font-size: 0.82rem; }
}

/* ── footer ── */
.foot { border-block-start: 1px solid var(--hairline); color: var(--text-faint); font-size: 0.92rem; }
.foot__in { max-width: 64rem; margin-inline: auto; padding: 1.3rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.foot a { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

@media print {
  :root { color-scheme: light; --canvas: #fff; --surface: #fff; --surface-hi: #fff; --text: #000; --text-dim: #222; --text-faint: #555; --accent-text: #000; --hairline: #ccc; --hairline-strong: #999; --volt: #888; --on-volt: #fff; }
  body { background: #fff; font-size: 11pt; }
  .top, .skip, .toc { display: none; }
  a { color: #000; }
  section { break-inside: avoid-page; }
}
