/* Shared styles for the standalone legal pages (BUILD_PLAN_PART2 §11.2).
   These pages are static HTML served outside the Vite bundle, so they link this
   sheet directly. No inline styles anywhere — the SPA's strict CSP is
   `style-src 'self'`, which forbids inline <style>/style="" (see
   web/security-headers.mjs). */

:root {
  color-scheme: light dark;
  --accent: #2f81f7;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.5rem 3rem;
}

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

.legal-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
}

.legal-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.legal-brand:hover,
.legal-brand:focus-visible {
  color: var(--accent);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.legal-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}

.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

.legal .updated {
  margin: 0 0 1.5rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.legal p,
.legal li {
  opacity: 0.92;
}

.legal a {
  color: var(--accent);
}

.legal .commitment {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
}

.legal .todo {
  border-left: 3px solid #d29922;
  padding-left: 0.75rem;
  opacity: 0.85;
  font-size: 0.9rem;
}

.legal-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentcolor 14%, transparent);
  font-size: 0.85rem;
  opacity: 0.8;
}
