/* DangClub legal pages (privacy, terms, account deletion). Standalone: does not depend on the landing-site styles. */
@font-face {
  font-family: "Rabar";
  src: url("fonts/Rabar.woff2") format("woff2"), url("fonts/Rabar.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("fonts/NotoKufiArabic-Bold.woff2") format("woff2"), url("fonts/NotoKufiArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("fonts/NotoKufiArabic-ExtraBold.woff2") format("woff2"), url("fonts/NotoKufiArabic-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #F7F6F4;
  --ink: #1C1A1F;
  --coral: #E0302F;
  --coral-dark: #B92222;
  --coral-soft: #FDE3E3;
  --teal-dark: #1E7A7A;
  --teal-soft: #DDF2F2;
  --amber-text: #6B4508;
  --amber-soft: #FDF0D8;
  --muted: #68646C;
  --line: #ECEAE6;
  --card: #FFFFFF;
  --body-font: "Rabar", "Noto Kufi Arabic", Tahoma, sans-serif;
  --head-font: "Noto Kufi Arabic", "Rabar", Tahoma, sans-serif;
  color-scheme: light;
}
html[lang="en"] {
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
html[lang="en"] body { line-height: 1.7; font-size: 16.5px; }

a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 246, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head-font); font-weight: 800; font-size: 20px; }
.brand-dot { width: 30px; height: 30px; border-radius: 10px; background: var(--coral); display: inline-grid; place-items: center; color: #fff; font-size: 15px; line-height: 1; }
.langs { display: inline-flex; gap: 4px; background: var(--line); padding: 3px; border-radius: 14px; }
.langs a { display: inline-block; padding: 4px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.8; }
.langs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 26, 31, 0.08); }

/* ---- document ---- */
main { padding: 28px 0 40px; }
.eyebrow { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
h1 { font-family: var(--head-font); font-weight: 800; font-size: clamp(26px, 6vw, 34px); line-height: 1.6; margin: 0 0 6px; }
html[lang="en"] h1 { line-height: 1.25; margin-bottom: 12px; }
.meta { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.lead { font-size: 18px; margin: 0 0 20px; }

.summary, .toc, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; margin: 0 0 22px;
}
.summary { background: var(--teal-soft); border-color: transparent; }
.summary h2, .toc h2 { font-size: 17px; margin: 0 0 6px; padding: 0; border: 0; }
.summary h2::before, .toc h2::before { display: none; }
.summary ul { margin: 0; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 28px; } /* headings carry their own numbers */
.toc li { break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral-dark); text-decoration: underline; }

section { padding-top: 6px; scroll-margin-top: 80px; }
h2 {
  font-family: var(--head-font); font-weight: 700; font-size: 21px; line-height: 1.7;
  margin: 26px 0 8px; display: flex; align-items: baseline; gap: 10px;
}
h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 4px; background: var(--coral); transform: translateY(-2px); }
h3 { font-family: var(--head-font); font-weight: 700; font-size: 17px; margin: 18px 0 4px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-inline-start: 24px; }
li { margin: 0 0 6px; }
strong { font-weight: 700; }
html:not([lang="en"]) strong { font-family: var(--head-font); font-size: 0.9em; }
/* In the summary box every bullet keeps the body font and size; emphasis is weight only, so fully bold bullets do not look larger than the others. */
html .summary li strong { font-family: inherit; font-size: inherit; font-weight: 700; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--line); border-radius: 6px; padding: 0 5px; direction: ltr; unicode-bidi: isolate; }

/* Placeholders that must be filled in before publishing (see LEGAL_TODO.md). */
.todo { background: var(--amber-soft); color: var(--amber-text); border-radius: 6px; padding: 0 5px; border-bottom: 1px dashed var(--amber-text); }

/* ---- account deletion page ---- */
.steps { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 46px; margin-bottom: 12px; min-height: 34px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--head-font); font-size: 15px; line-height: 1;
}
.ui { background: var(--line); border-radius: 8px; padding: 1px 8px; font-weight: 700; white-space: nowrap; }
.split { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 680px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card { margin: 0; }
.card.erased { border-top: 5px solid var(--teal-dark); }
.card.kept { border-top: 5px solid var(--amber-text); }
.card h3 { margin-top: 0; }
.note { background: var(--coral-soft); border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.foot a { color: var(--ink); }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .summary, .toc, .card { padding: 16px; border-radius: 18px; }
  .langs a { padding: 4px 9px; }
}
@media print {
  .top, .skip, .toc, .foot nav { display: none; }
  body { background: #fff; }
  .summary, .card { border: 1px solid #ccc; }
}
