/* CloakSnap text pages (privacy, terms, refund, welcome): one readable column under the site's fixed header,
   then a plain dark footer. Loaded after system.css, ui/base.css and site.css. These pages do not use
   `main > section` (the kit makes those exactly one screen tall), so long text flows freely. */

/* ---------------------------------------------------------------- header: logo + language switch only */
.nav--doc .nav__bar { gap: var(--s-4); }
.nav--doc .lang-switch { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav--doc .lang-switch:hover { color: var(--action); }

/* ---------------------------------------------------------------- the text column */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
@media (max-width: 639px) { .doc { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-8); } }
.doc__body { max-width: 70ch; }
.doc__body > * + * { margin-top: var(--s-4); }
.doc__body h1 { font-size: var(--t-h2); line-height: 1.1; }
.doc__body h2 { font-size: var(--t-h3); line-height: 1.25; margin-top: var(--s-8); }
.doc__body h3 { font-family: var(--font-text); font-size: var(--t-card); font-weight: 500; letter-spacing: -0.01em; margin-top: var(--s-6); }
.doc__body h1 + * { margin-top: var(--s-4); }
.doc__body h2 + *, .doc__body h3 + * { margin-top: var(--s-3); }
.doc__body :where(p, li) { font-size: var(--t-body); line-height: 1.65; }
.doc__body :where(ul, ol) { padding-left: 1.3em; }
.doc__body :where(ul) { list-style: disc; }
.doc__body :where(ol) { list-style: decimal; }
.doc__body :where(li + li) { margin-top: var(--s-2); }
.doc__body li::marker { color: var(--muted); }
.doc__body a:not(.btn) { color: var(--action); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--action) 40%, transparent); }
.doc__body a:not(.btn):hover { text-decoration-color: currentColor; }
.doc__body :where(p, li, td) { overflow-wrap: anywhere; }
.doc__body b, .doc__body strong { font-weight: 600; }
.doc__body :where(code) { font-family: var(--font-mono); font-size: 0.92em; }
.doc__meta { color: var(--muted); font-size: var(--t-small); }
.doc__lead { font-size: var(--t-lead); line-height: 1.55; }
.doc__note { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface); }
.doc__note > * + * { margin-top: var(--s-2); }

/* a two-column fact table that stacks on a phone */
.doc__table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.doc__table th, .doc__table td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.doc__table th { font-weight: 500; width: 32%; }
@media (max-width: 639px) {
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table th, .doc__table td { display: block; width: 100%; }
  .doc__table th { border-bottom: 0; padding-bottom: 0; }
}

/* ---------------------------------------------------------------- footer */
.footer--doc { padding-block: var(--s-8) var(--s-6); }
.footer--doc .footer__lede { font-size: var(--t-lead); max-width: 30ch; }
.footer--doc .footer__legal a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- welcome page */
.wl-panel { margin-top: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 639px) { .wl-panel { padding: var(--s-5) var(--s-4); } }
.wl-panel > * + * { margin-top: var(--s-4); }
.wl-status { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.wl-status .ui-spin { width: 16px; height: 16px; border-width: 2px; }
.wl-plan { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); line-height: 1.25; letter-spacing: var(--display-tracking); }
.wl-key {
  display: block; margin: 0; padding: var(--s-4); border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line-strong);
  font: 400 13px/1.6 var(--font-mono); color: var(--ink);
  white-space: normal; overflow-wrap: anywhere; word-break: break-all;
  -webkit-user-select: all; user-select: all; max-height: 12em; overflow-y: auto;
}
.wl-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
@media (max-width: 639px) { .wl-actions { flex-direction: column; align-items: stretch; } .wl-actions .btn { width: 100%; } }
.wl-copied { color: var(--action); font-size: var(--t-small); font-weight: 500; min-height: 1.5em; }
.wl-order { color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .wl-status .ui-spin { animation-duration: 2s; } }
