/* Shared styling for pricing/contact/terms/privacy/refund — deliberately not
   loading app.css itself to avoid dragging in the full app's layout rules for
   what's mostly plain-text documents. The palette these pages use is NOT
   duplicated here any more: tokens.css is loaded alongside this file and is
   the single source for both, so a color change is one edit. */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 32px 16px 64px;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

.legal-doc {
  max-width: 620px;
  width: 100%;
}

/* ── Brand header ────────────────────────────────────────────── */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 18px;
}
.brand-logo-link { display: flex; line-height: 0; }
/* Same CSS-mask treatment as app.css's .logo -- see the long note there. */
.brand-logo {
  width: 26px; height: 26px;
  /* --accent-text, not --gold-hi: its light value is #56120a, the mark's
     original color, so light mode is unchanged from before dark mode
     existed, while dark gets the legible #c67a5f. */
  background-color: var(--accent-text);
  -webkit-mask: url("icons/icon-transparent.svg?v=8") center / contain no-repeat;
          mask: url("icons/icon-transparent.svg?v=8") center / contain no-repeat;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  white-space: nowrap;
}
.back-link:hover { border-color: var(--gold); color: var(--accent-text); }

/* ── Document card ───────────────────────────────────────────── */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px 6px;
}
@media (max-width: 480px) {
  .doc-card { padding: 22px 18px 4px; border-radius: var(--r); }
}

.legal-doc h1 {
  font-size: 1.5rem;
  color: var(--gold-hi);
  margin-bottom: 4px;
}
.legal-doc .updated {
  display: inline-block;
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.legal-doc h2 {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 10px;
}
/* Each section wraps its h2 + body in one box so the accent bar sits beside
   both, rather than only offsetting the heading text and leaving the
   paragraphs below it looking outdented. */
.doc-section {
  position: relative;
  padding-left: 14px;
  margin-top: 28px;
}
.doc-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 15px;
  background: var(--gold);
  border-radius: 2px;
}
.legal-doc p, .legal-doc li {
  font-size: 0.93rem;
  color: var(--text);
  max-width: 62ch;
}
.legal-doc p { margin-bottom: 12px; }
.legal-doc ul {
  padding-left: 1.2em;
  margin: 8px 0 16px;
}
.legal-doc li { margin-bottom: 7px; }
.legal-doc a { color: var(--accent-text); }
.price-fun {
  color: var(--dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: -6px;
}

/* Pricing's price block */
.price-block {
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 18px 4px;
  margin: 14px 0 18px;
}
.price-block h2 { margin-top: 0; }
.price-amount { color: var(--accent-heading); }

/* Contact's link rows */
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface2);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.93rem;
}
.contact-row svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 4px 4px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--dim);
}
.doc-footer a { color: var(--dim); text-decoration: none; }
.doc-footer a:hover { color: var(--accent-text); }
.doc-footer .credit { display: flex; align-items: center; gap: 6px; }
.doc-footer .credit-logo { height: 14px; width: auto; vertical-align: -2px; }

/* Compound selector (not a bare .legal-cta) so this wins over the higher-
   specificity ".legal-doc a { color }" link-color rule above -- otherwise the
   text renders the same oxblood as its own background. */
.legal-doc .legal-cta {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: 20px;
  margin: 22px 0 4px;
}
.legal-doc .legal-cta:hover { background: var(--gold-hi); }
