/* anom.app — the reading pages: Privacy and Terms (generated from legal-src/
   by tools/md2legal.js) and Delete account, English and Arabic. The colours,
   header and footer come from /assets/site.css (loaded first), so light, dark
   and the switch work as on the landing page. */

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }

/* ── Article ──────────────────────────────────────────────────────────── */
.article { max-width: 720px; margin: 0 auto; padding-block: 16px 72px; }
.article h1 { font-size: clamp(30px, 7vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 8px 0 10px; text-wrap: balance; }
.article .updated { font-size: 14px; color: var(--text-3); margin: 0 0 32px; }
.article h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 40px 0 12px; }
.article h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 28px 0 8px; }
.article h4 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.article p { font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.article ul, .article ol { padding-inline-start: 24px; margin: 0 0 16px; }
.article li { font-size: 17px; line-height: 1.65; margin: 6px 0; }
.article li > ul, .article li > ol { margin: 6px 0 0; }
.article a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.article a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article strong { font-weight: 700; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.article blockquote { border-inline-start: 3px solid var(--border-strong); padding-inline-start: 16px; color: var(--text-2); margin: 0 0 16px; }
.article p.muted { color: var(--text-2); font-size: 15px; }

/* The provider table: a hairline card that scrolls sideways on narrow screens;
   in Arabic its column order mirrors with the text. */
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article th, .article td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article th { font-weight: 700; background: var(--surface-2); color: var(--text-2); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.article tr:last-child td { border-bottom: 0; }

/* Lawyer notes: visible, yellow, until legal review removes them */
.note { background: #FFF3A3; color: #4A3F00; padding: 1px 4px; border-radius: 4px; }

/* Arabic: a little larger and airier, as on /ar */
[dir="rtl"] .article p, [dir="rtl"] .article li { font-size: 18px; line-height: 1.8; }
[dir="rtl"] .article h1 { line-height: 1.4; }
[dir="rtl"] .article h2, [dir="rtl"] .article h3 { line-height: 1.5; }
[dir="rtl"] .article th { text-transform: none; font-size: 14px; }
[dir="rtl"] .article table { direction: rtl; }

/* ── Delete account: the path in the app, and the request form ────────── */
.article .path {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 16px; font-weight: 500; margin: 4px 0 16px;
}
.article .path .sep { color: var(--text-3); }
.article .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 8px 0 16px; }
.article .field { margin-bottom: 14px; }
.article .label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.article .input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); outline: none;
  transition: border-color 0.18s var(--easing), box-shadow 0.18s var(--easing);
}
.article .input::placeholder { color: var(--text-3); }
.article .input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.article .check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; margin: 4px 0 18px; }
.article .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.article .button {
  font: inherit; font-size: 16px; font-weight: 600; color: #FFFFFF; background: var(--accent);
  border: 0; border-radius: 100px; padding: 13px 22px; cursor: pointer;
  transition: background 0.18s var(--easing), transform 0.18s var(--easing), opacity 0.18s var(--easing);
}
.article .button:hover { background: var(--accent-hover); }
.article .button:active { transform: scale(0.98); }
.article .button[disabled] { opacity: 0.6; cursor: default; }
.article .error { color: var(--error); font-size: 14px; margin-top: 10px; min-height: 20px; }
.article .success { display: none; }
.article .success p { margin: 0; }
.article .success .title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
/* The honeypot (.hp) is in site.css: the waitlist form has one too. */
