/* Layout for the published legal documents.

   The document text itself is not styled here beyond line length and
   rhythm: it arrives as plain text with its own numbering and blank lines,
   exactly as it was approved, and `white-space: pre-wrap` keeps that shape
   instead of reflowing it into something the approved copy never said. */

.legal { max-width: 760px; margin: 0 auto; padding: 36px 0 80px; }

.legal .back {
  display: inline-block; margin-bottom: 26px;
  font-weight: 700; font-size: 14px; color: var(--green); text-decoration: none;
}
.legal .back:hover { text-decoration: underline; }

.legal h1 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(26px, 4.4vw, 34px); line-height: 1.15;
  color: var(--head); margin: 0 0 12px;
}

.legal .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.legal .chip {
  display: inline-block; background: var(--mint); color: var(--mission);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700;
}

/* Deliberately NOT `.note`: styles.css already owns that name for the
   callout with the round icon, and its `display: flex` beats the browser's
   `[hidden] { display: none }` — which silently un-hid the notice. */
.legal .legal-note {
  background: var(--mint); border-radius: 16px; padding: 14px 18px;
  font-size: 14px; line-height: 1.5; color: var(--body2); margin: 0 0 22px;
}
.legal .legal-note a { color: var(--green); }

/* Belt and braces: whatever a shared class sets, hidden means hidden here. */
.legal [hidden] { display: none !important; }

/* ── "What this site has stored in your browser" ─────────────────────────
   Sits below the policy text on the cookie page only. Kept visually quiet:
   it is a tool, not a banner demanding attention. */
.legal .store {
  margin-top: 40px; padding: 22px; border: 1px solid var(--border);
  border-radius: 18px; background: var(--card);
}
.legal .store h2 {
  font-family: var(--disp); font-size: 19px; font-weight: 800;
  color: var(--head); margin: 0 0 8px;
}
.legal .store-intro, .legal .store-empty {
  font-size: 14px; line-height: 1.55; color: var(--body2); margin: 0 0 14px;
}
.legal .store-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.legal .store-list li {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--paper);
}
.legal .store-name {
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.legal .store-kind {
  font-weight: 600; font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.legal .store-note { font-size: 13.5px; color: var(--body2); margin-top: 3px; }
.legal .store-value {
  display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted);
  overflow-wrap: anywhere;
}
.legal .store-clear {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: #fff; background: var(--green); border: 0;
  border-radius: 999px; padding: 10px 20px;
}
.legal .store-clear:hover { background: var(--green-press); }
.legal .store-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--green); }

.legal .state { color: var(--muted); font-size: 15px; margin: 0; }

.legal .body {
  white-space: pre-wrap; line-height: 1.62; font-size: 15.5px; color: var(--ink);
}

@media (max-width: 700px) {
  .legal { padding: 24px 0 60px; }
  .legal .body { font-size: 15px; }
}
