/* Privacy and Terms: mobile first, same palette as the map (app.css) */
body.page { height: auto; min-height: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 16px 0; }
.topbar .brand { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.topbar .link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.draft-banner { max-width: 760px; margin: 8px auto 0; padding: 10px 16px; background: #ca8a0430; color: var(--fg);
  border-left: 4px solid #ca8a04; font-weight: 600; }
main.legal { max-width: 760px; margin: 0 auto; padding: 4px 16px calc(32px + env(safe-area-inset-bottom));
  line-height: 1.5; overflow-wrap: anywhere; }
main.legal h1 { font-size: 24px; margin: 12px 0 4px; }
main.legal h2 { font-size: 17px; margin: 24px 0 6px; }
main.legal h3 { font-size: 15px; margin: 16px 0 4px; }
main.legal p, main.legal li { margin: 0 0 10px; }
main.legal ul { padding-left: 20px; margin: 0 0 10px; }
.updated, .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #8884; }
th { color: var(--muted); font-weight: 600; }
.legal-nav { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 12px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Retention table: stacked rows on narrow screens so words never break mid-word */
@media (max-width: 640px) {
  table.stack { min-width: 0; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 8px 0; border-bottom: 1px solid #8884; }
  table.stack td { border: 0; padding: 2px 0; overflow-wrap: break-word; }
  table.stack td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px;
    font-weight: 600; }
  table.stack td:first-child { font-weight: 600; }
  table.stack td:first-child::before { display: none; }
}

/* Landing pages (/add-receiver, /about, /faq) */
.hero-note { padding: 10px 14px; border-radius: 12px; background: #ca8a0425; border-left: 4px solid #ca8a04; margin: 0 0 14px; }
pre { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #8881; border: 1px solid #8884;
  overflow-x: auto; font-size: 13px; line-height: 1.45; white-space: pre; max-width: 100%; }
code { font-size: 0.92em; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
ol.steps { padding-left: 22px; }
ol.steps > li { margin: 0 0 14px; }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }
details.faq { border-bottom: 1px solid #8884; }
details.faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; padding: 6px 0; }
details.faq > :not(summary) { margin-top: 0; }
.site-footer { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 24px 0 0; padding-top: 8px; border-top: 1px solid #8884; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
main.legal table { margin: 0 0 14px; }
