/* ══════════════════════════════════════════════════════════════════
   legal.css — the reference pages (/privacy, /terms, /support).
   The architecture's reference pattern (SITE-ARCHITECTURE §5): a
   plain-words summary a human reads, then the complete text in
   collapsed <details> rows. Everything is in the static HTML —
   crawlers see all of it; humans see a bounded page.
   ══════════════════════════════════════════════════════════════════ */

/* .legal-wrap IS the <main> element: pad the inner container instead of
   fighting the nav-offset padding partials.css puts on main */
.legal-wrap .container {
  max-width: 800px;
  padding-top: clamp(20px, 4vw, 44px);
}

.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

.legal-updated {
  font-size: var(--size-small);
  color: var(--ink-soft);
  margin: 0 0 26px;
}

/* ── the plain-words summary ──────────────────────────────────── */

.ref-summary {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow-lift);
  margin-bottom: 36px;
}

.ref-summary p {
  max-width: 68ch;
  margin-bottom: 1em;
}
.ref-summary p:last-child { margin-bottom: 0; }

.ref-note {
  font-size: var(--size-small);
  color: var(--ink-soft);
}

/* ── the complete text, one collapsed row per section ─────────── */

.ref-section {
  border-bottom: 1px solid var(--border);
}
.ref-section:first-of-type { border-top: 1px solid var(--border); }

.ref-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 17px 2px;
  font-family: var(--font-display);
  /* text-grade optical size, as .faq-list summary: display Fraunces
     grows a curled hook on the lowercase f at row scale */
  font-variation-settings: 'opsz' 9;
  font-size: 19px;
  font-weight: 560;
  color: var(--espresso);
  transition: color 0.2s var(--ease-breathe);
}
.ref-section summary::-webkit-details-marker { display: none; }
.ref-section summary:hover { color: var(--clay-1); }

.ref-section summary .num {
  color: var(--amber);
  font-size: 14px;
  min-width: 26px;
}

.ref-section summary::after {
  content: '';
  margin-left: auto;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--clay-2), var(--clay-2)) center / 12px 1.8px no-repeat,
    linear-gradient(var(--clay-2), var(--clay-2)) center / 1.8px 12px no-repeat;
  transition: transform 0.35s var(--ease-breathe);
}
.ref-section[open] summary::after { transform: rotate(45deg); }

.ref-section > *:not(summary) {
  margin-left: 40px;
  max-width: 66ch;
}

.ref-section p, .ref-section ul {
  color: var(--ink-soft);
  font-size: calc(var(--size-body) - 1px);
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 1em;
}

.ref-section ul { padding-left: 20px; }
.ref-section li { margin-bottom: 0.5em; }
.ref-section > *:last-child { margin-bottom: 22px; }

/* ── support Q&A + closing line ───────────────────────────────── */

.legal-h2 {
  font-size: var(--size-h3);
  margin: 8px 0 14px;
}

.legal-wrap .faq-list { max-width: none; }
.legal-wrap .faq-list summary { font-size: 18px; }
.legal-wrap .faq-list details p { font-size: calc(var(--size-body) - 1px); }

.legal-out {
  margin: 36px 0 0;
  font-size: var(--size-small);
  color: var(--ink-soft);
  max-width: 72ch;
}

@media (max-width: 768px) {
  .ref-summary { padding: 22px 20px; }
  .ref-section > *:not(summary) { margin-left: 0; }
}

/* print: the collapsed sections open up */
@media print {
  .ref-section, .faq-list details { border-color: #bbb; }
  details > *:not(summary) { display: block; }
}

/* ── /support: the in-app support screen, rendered ────────────── */
.support-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 8px 0 36px;
}
.support-shot { margin: 0; min-width: 0; }
.support-shot .au-frame { margin: 0 auto; }
.support-shot figcaption {
  margin-top: 12px;
  font-size: var(--size-small);
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 640px) {
  .support-app { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
