/* Stack-Oh legal pages (issue #206) — self-contained styles for the static
 * /privacy and /terms HTML documents. These pages render with ZERO
 * JavaScript and do NOT load the SPA's src/styles.css, so every value the
 * pages need lives here. Served same-origin from /legal.css, which satisfies
 * the strict Content-Security-Policy (`style-src 'self'`) in public/_headers
 * — an inline <style> block would be blocked by that policy.
 *
 * Brand palette mirrors the SPA tokens: cream #F9F2E5 surface, navy #233B70
 * ink. Navy on cream clears WCAG AA comfortably; links are navy + underlined.
 */

:root {
  color-scheme: light;
  --cream: #f9f2e5;
  --navy: #233b70;
  --orange-dark: #d9520f;
  --rule: rgba(35, 59, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--cream);
}

body {
  margin: 0;
  padding: 1.5rem 1rem 4rem;
  background-color: var(--cream);
  color: var(--navy);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.legal h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

.legal-updated {
  margin: 0 0 1.5rem;
  font-style: italic;
  opacity: 0.85;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.legal a:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 2px;
  border-radius: 2px;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.legal-tldr {
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--orange-dark);
  background: rgba(217, 82, 15, 0.06);
  border-radius: 0.5rem;
}

.legal-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

.legal-footer-nav a {
  margin-right: 1.25rem;
}
