/* Reading pages (Help, Terms, Privacy, Delete account): site.css supplies the
   fonts, colours, header and footer; this file styles the long-form content. */

.doc { max-width: 760px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-left, 0px)) 96px; }

/* Page links: Help · Terms · Privacy */
.doc-nav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); margin-bottom: 40px; }
.doc .doc-nav a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.doc .doc-nav a:hover { color: var(--ink); }
.doc .doc-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 14px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin: 48px 0 12px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; letter-spacing: -.01em; margin: 28px 0 8px; }
.doc p, .doc li, .doc td, .doc th, .doc summary { font-size: 16px; line-height: 1.7; color: #3D3A37; }
.doc p { margin-bottom: 14px; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc .lede { font-size: 19px; color: var(--muted); margin: 0 0 8px; max-width: none; }
.doc .last-updated { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* Table of contents */
.toc { background: var(--cream); border-radius: 20px; padding: 22px 26px; margin: 28px 0 8px; }
.toc p { margin: 0 0 10px; font-family: 'Quantico', 'Inter', sans-serif; font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 0 0 4px; break-inside: avoid; font-size: 15px; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }

/* Help: topic cards */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 8px; }
.doc .topic { display: block; background: var(--cream); border-radius: 20px; padding: 20px; text-decoration: none; transition: background .2s; }
.doc .topic:hover { background: var(--cream-2); }
.topic strong { display: block; font-size: 17px; margin-bottom: 4px; }
.topic span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Help: steps */
.doc .steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; line-height: 28px; text-align: center; }

/* Help: the light ring table */
.table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { text-align: left; color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.doc td { vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc td:first-child { color: var(--ink); white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: var(--ring); box-shadow: 0 0 6px rgba(242,201,139,.9); }
.dot.amber { background: #F59E0B; box-shadow: none; }
.dot.off { background: transparent; border: 1px solid var(--muted); box-shadow: none; }

/* Help: questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 10px; }

/* Help: contact */
.contact-card { background: var(--ink); color: var(--on-ink); border-radius: 24px; padding: 28px; margin-top: 48px; }
.doc .contact-card h2 { margin-top: 0; color: var(--on-ink); }
.doc .contact-card p { color: var(--on-ink-muted); }
.doc .contact-card .button { display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; padding: 0 22px; border-radius: 999px; background: var(--on-ink); color: var(--ink); font-weight: 600; text-decoration: none; max-width: 100%; }

.doc .back-to-top { display: inline-block; margin-top: 32px; font-size: 14px; color: var(--muted); }
