/* The privacy, terms, account-deletion and 404 pages. They load home.css for the shared look (colours, type, nav,
   footer, torn paper) and add this for long text: a night header, a paper body and the text on one clean sheet. */

.doc-page .nav-langs { margin-inline-start: auto; }

.doc-head {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(128px + env(safe-area-inset-top, 0px)) 0 clamp(80px, 10vw, 128px);
  background:
    radial-gradient(1px 1px at 12% 28%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 18%, rgba(220, 230, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 63% 58%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 78% 24%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 66%, rgba(220, 230, 255, 0.7), transparent 60%),
    radial-gradient(120% 90% at 50% -20%, #12307A 0%, var(--night-2) 45%, var(--night) 100%);
}
.doc-head .wrap { position: relative; }
.doc-head .eyebrow { color: var(--star); }
.doc-title { margin-top: 18px; font: 700 clamp(2.2rem, 5vw, 4rem)/1.06 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
html[lang="ar"] .doc-title { font-family: var(--arabic); font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: clamp(2.1rem, 5vw, 3.75rem); }
.doc-meta { margin-top: 16px; color: var(--on-dark-muted); font: 500 0.8125rem var(--mono); letter-spacing: 0.04em; }
html[lang="ar"] .doc-meta { font-family: var(--arabic); letter-spacing: 0; font-size: 0.9375rem; }
.wrap.narrow { max-width: 840px; }

.doc-body { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 72px) clamp(88px, 10vw, 140px); }

/* the draft note and the contents */
.draft { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #FFF6E2; border: 1px solid rgba(190, 140, 40, 0.32); color: #4F3A00; font-size: 0.9375rem; line-height: 1.55; }
.draft::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 50%; background: #C98A12; }
.draft strong { color: #3A2B00; }
.toc { margin-top: 14px; padding: 0 20px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--blue-2); transition: rotate 0.3s var(--ease); }
.toc[open] summary::after { rotate: 45deg; }
.toc ol { display: grid; gap: 6px; margin: 0 0 18px; padding-inline-start: 1.5em; list-style: decimal; color: var(--muted); }
.toc a { color: var(--blue-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* the text itself */
.doc { margin-top: 20px; padding: clamp(22px, 5vw, 56px); border-radius: 24px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 40px 80px -60px rgba(11, 31, 75, 0.45); color: var(--text); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
html[lang="ar"] .doc { line-height: 1.9; }
.doc h1 { display: none; }
.doc h2, .section > h2 { margin: 48px 0 14px; font: 700 clamp(1.4rem, 2.2vw, 1.75rem)/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; scroll-margin-top: 100px; text-wrap: balance; }
html[lang="ar"] .doc h2, html[lang="ar"] .section > h2 { font-family: var(--arabic); font-weight: 700; font-size: 1.375rem; line-height: 1.5; letter-spacing: 0; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 8px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 1.4em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--blue-2); }
.doc a { color: var(--blue-2); text-underline-offset: 0.18em; }
.doc strong { color: var(--ink); }
.doc blockquote { margin: 16px 0; padding: 12px 16px; border-inline-start: 3px solid var(--blue-2); border-radius: 0 12px 12px 0; background: #F3F6FE; }
[dir="rtl"] .doc blockquote { border-radius: 12px 0 0 12px; }
.doc code { font: 0.875em var(--mono); padding: 1px 6px; border-radius: 6px; background: #EEF2FB; }
.doc .todo { padding: 0 4px; border-radius: 4px; background: #FFF1D6; color: #6B4A00; }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table-wrap.two table { min-width: 0; }
.doc th, .doc td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: #F1F4FB; color: var(--ink); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* account deletion */
.section { margin-top: 44px; }
.section > h2 { margin-top: 0; }
.prose { color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue-2); text-underline-offset: 0.18em; }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 18px 20px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line); color: var(--text); }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue-2); }
.notice p { margin: 0; }
.notice strong { color: var(--ink); }
.steps { display: grid; gap: 10px; counter-reset: step; }
.steps li { position: relative; min-height: 60px; padding: 16px 18px; padding-inline-start: 64px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); counter-increment: step; color: var(--text); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 0.875rem var(--mono); }
.ui { font-weight: 700; color: var(--ink); }
.card { padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--sheet); border: 1px solid var(--line); color: var(--text); }
.card p + p { margin-top: 10px; }
.card h3 { font: 700 1.375rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
html[lang="ar"] .card h3 { font-family: var(--arabic); font-weight: 700; font-size: 1.25rem; line-height: 1.5; }
.mail, .prose a.mail { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 0.4em; min-height: 48px; max-width: 100%; margin-top: 8px; padding: 10px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; transition: background-color 0.2s; }
@media (hover: hover) { .mail:hover, .prose a.mail:hover { background: var(--blue); color: #fff; } }
section.kv { display: grid; gap: 16px; }
@media (min-width: 700px) { section.kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
section.kv .card ul { display: grid; gap: 8px; margin-top: 14px; padding-inline-start: 1.2em; list-style: disc; }
section.kv .card li::marker { color: var(--blue-2); }
section.kv .card.gone { border-top: 3px solid var(--blue-2); }
section.kv .card.kept { border-top: 3px solid #8A93A6; }
.after { margin-top: 14px; }

/* page not found */
.nf { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 120px var(--gutter) 64px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% -20%, #12307A 0%, var(--night-2) 45%, var(--night) 100%); }
.nf-star { width: 56px; height: 56px; margin: 0 auto 28px; filter: drop-shadow(0 0 14px rgba(170, 195, 255, 0.65)); }
.nf h1 { font: 700 clamp(2.2rem, 6vw, 4.2rem)/1.06 var(--display); letter-spacing: -0.03em; }
.nf ul { display: grid; gap: 10px; max-width: 420px; margin: 32px auto 0; }
.nf li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-dark-muted); text-align: start; }
.nf li[lang="ar"] { font-family: var(--arabic); }
.nf a { color: #fff; font-weight: 700; }
.nf .eyebrow { justify-content: center; color: var(--star); }
@media (max-width: 560px) {
  /* two-column tables (label, answer) stack on phones: the label above its answer */
  .table-wrap.two table, .table-wrap.two tbody, .table-wrap.two tr, .table-wrap.two th, .table-wrap.two td { display: block; width: auto; }
  .table-wrap.two thead { display: none; }
  .table-wrap.two tr { border-bottom: 1px solid var(--line); }
  .table-wrap.two tr:last-child { border-bottom: 0; }
  .table-wrap.two th, .table-wrap.two td { border-bottom: 0; }
  .table-wrap.two th, .table-wrap.two td:first-child { padding-bottom: 6px; }
  .table-wrap.two th + td, .table-wrap.two td + td { padding-top: 0; }
  .table-wrap.two th { background: none; }
  .doc { padding: 22px 18px; border-radius: 20px; }
}

/* Leaving the waitlist (site/unsubscribe) */
.leave-msg { flex-basis: 100%; color: #fff; font-weight: 600; }
