/* legal.css
   ------------------------------------------------------------------------
   Shared styles for the Terms of Service and Privacy Policy pages
   (public/terms.html, public/privacy.html). These are long-form prose
   pages, so the priority is a narrow, readable column - reuses app.css's
   color/font tokens and the existing .brand component, but otherwise has
   its own minimal layout (no dashboard chrome needed here).
   ------------------------------------------------------------------------ */

.legal-body {
  background: var(--bg);
  min-height: 100%;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-nav .brand { padding: 0; }
.legal-nav .back-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.legal-nav .back-link:hover { color: var(--text); }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 28px 70px;
}
.legal-content h1 { font-size: 28px; margin-bottom: 6px; }
.legal-updated { color: var(--text-faint); font-size: 12.5px; margin-bottom: 36px; }
.legal-content h2 { font-size: 17px; margin: 36px 0 12px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.legal-content ul,
.legal-content ol { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent); }

/* Callout box for anything that needs to stand out from the surrounding
   prose (the crypto-payment warning, the "deletion doesn't cancel your
   CSFloat orders" note) - reuses the same amber "pay attention" color the
   dashboard already uses for its own at-cap/warning states. */
.legal-callout {
  background: rgba(255, 194, 75, 0.08);
  border: 1px solid rgba(255, 194, 75, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 4px 0 22px;
}
.legal-callout p { margin-bottom: 10px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout strong { color: var(--wear-ft); }

.legal-footnote {
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.legal-footer-nav a { color: var(--text-muted); text-decoration: none; }
.legal-footer-nav a:hover { color: var(--text); }
