/* Shared styling for the CielLogic public legal pages (docs/legal-pages.md).
   Matches the in-app help pages' design system (frontend/scripts/build-help.mjs,
   itself pulled from the app's design tokens) for visual continuity across
   ciellogic.jeremysnyder.fr, legal.ciellogic.jeremysnyder.fr and /help/ -- kept in sync by hand since
   these are static files outside the Vite/Tailwind build. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fg: #23211d;
  --fg-muted: #837c6e;
  --link: #2a6f97;
  --rule: #ddd3c2;
  --bg: #ffffff;
  --bar: #f7f4ee;
  --accent: #2a6f97;
  --radius: 0.625rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e4da;
    --fg-muted: #a89f8c;
    --link: #8cbbd6;
    --rule: #3a4a54;
    --bg: #16242d;
    --bar: #1d3d50;
    --accent: #8cbbd6;
  }
}
* { box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
}
.topbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--rule); background: var(--bar);
  font-size: 0.9rem;
}
.topbar a { color: var(--link); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .home { font-family: var(--font-display); font-weight: 600; color: var(--fg); }
.topbar nav { display: flex; gap: 1.25rem; font-family: var(--font-display); font-weight: 500; }
main { max-width: 44rem; margin: 2.5rem auto 5rem; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { line-height: 1.25; margin-bottom: 0.25rem; }
h2 { margin-top: 2.5rem; line-height: 1.3; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
h3 { margin-top: 1.75rem; }
a { color: var(--link); }
hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
em { color: var(--fg-muted); }
.meta { color: var(--fg-muted); font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--rule); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
code { background: var(--rule); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.25rem 0; }
.todo { color: #b91c1c; font-weight: 600; }
@media (prefers-color-scheme: dark) { .todo { color: #f87171; } }
footer {
  max-width: 44rem; margin: 0 auto; padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule); color: var(--fg-muted); font-size: 0.9rem;
}
footer a { color: var(--link); }
