/* Legal + support pages: one readable column in the brand's type and colours. Tokens come from /css/brand.css. */
body { background: var(--paper); }
/* A soft peach glow behind the title, as on the landing hero. */
body::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 420px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 150, 112, .22), rgba(255, 150, 112, 0) 72%); }

.doc { max-width: 680px; margin: 0 auto; padding: 44px var(--gutter) 64px; font-size: 16px; line-height: 1.62; color: var(--ink); overflow-wrap: break-word; }
.doc h1 { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
@media (min-width: 700px) { .doc h1 { font-size: 44px; } }
.doc .updated { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.doc .lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.doc h2 { margin: 40px 0 0; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; scroll-margin-top: 80px; }
.doc h3 { margin: 22px 0 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.doc p, .doc ul, .doc ol { margin: 10px 0 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--ink-3); }
.doc b, .doc strong { font-weight: 700; }
.doc a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--accent); }
.doc address { margin-top: 10px; font-style: normal; }

/* A short summary or an important rule, set apart from the body text. */
.doc .box { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.doc .box > :first-child { margin-top: 0; }
.doc .box--soft { border-color: transparent; background: var(--accent-soft); box-shadow: none; }
.doc .box h2 { margin: 0; font-size: 17px; }

/* Tables: a plain grid on wide screens, one card per row on phones. */
.table-wrap { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 13px; font-weight: 700; letter-spacing: .2px; color: var(--ink-2); background: var(--paper-2); }
.doc th:first-child { width: 36%; }
.doc td:first-child { font-weight: 700; }
.doc td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 519px) {
  .table-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .doc tr + tr { margin-top: 10px; }
  .doc td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border: 0; }
  .doc td::before { content: attr(data-label); flex: none; font-weight: 600; color: var(--ink-2); }
  .doc td:first-child { padding-top: 0; font-size: 17px; font-weight: 800; }
  .doc td:first-child::before { content: none; }
  .doc td.wide { display: block; padding-bottom: 0; }
  .doc td.wide::before { display: block; margin-bottom: 2px; }
}

/* Support page */
.doc .mail-btn { margin-top: 20px; max-width: 360px; color: #fff; font-weight: 700; text-decoration: none; }
.doc .mail-btn:hover { color: #fff; }
.doc .alt { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-3px) rotate(45deg);
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > p { margin: 0 0 16px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }


/* Support contact form (support/support.js) */
.cform { display: grid; gap: 18px; margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
@media (min-width: 600px) { .cform { padding: 24px; } }
.cform__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .cform__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } }
.cfield { display: grid; gap: 6px; min-width: 0; }
.cfield label { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cfield .opt { margin-left: 4px; color: var(--ink-3); font-weight: 500; }
.cinput {
  width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.cinput { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.cinput:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cinput.is-bad { border-color: var(--warn); }
.cerr, .chint { margin: 0; font-size: 14px; line-height: 1.4; }
.cerr { color: var(--warn); font-weight: 600; }
.chint { color: var(--ink-3); }
/* Honeypot: off screen for people, still in the form for bots. */
.cform__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform__fail { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 15px; font-weight: 600; line-height: 1.45; }
.doc .cform__fail a { color: inherit; }
.cform .btn { justify-self: start; width: auto; min-width: 220px; }
@media (max-width: 519px) { .cform .btn { justify-self: stretch; width: 100%; } }
.cform--done { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; background: var(--ok-soft); border-color: transparent; box-shadow: none; color: var(--ok); outline: none; }
.cform--done svg { display: block; }
.cform--done p { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
