/* Pages légales de StoryForge */
/* Même palette et mêmes polices que l'application (voir theme.css) */
:root { color-scheme: light dark; --bg:#f3f4f8; --panel:#fff; --text:#1e2130; --muted:#636a7c; --line:#e2e4ec; --link:#026fae; --todo:#fff3bf; --soft:#eceef4; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#14151b; --panel:#1f2029; --text:#e6e6ef; --muted:#9a9cb5; --line:#34364a; --link:#7cc4f5; --todo:#5c4a00; --soft:#2a2c3b; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
header, main, footer { max-width: 820px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
header .brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
header a.back { color: var(--link); font-weight: 700; text-decoration: none; }
header a.back:hover { text-decoration: underline; }
main { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(20,22,40,.05); margin-top: 18px; margin-bottom: 18px; padding: 28px 28px 20px; }
h1 { margin: 0 0 4px; font-size: 1.7rem; }
h2 { margin: 30px 0 8px; font-size: 1.15rem; }
h2:first-of-type { margin-top: 22px; }
p, li { max-width: 70ch; }
.muted { color: var(--muted); font-size: .9rem; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 9px 11px; vertical-align: top; text-align: left; }
th { background: var(--soft); }
mark.todo { background: var(--todo); color: inherit; padding: 1px 5px; border-radius: 4px; }
.summary { border-left: 4px solid #f1c40f; background: var(--soft); padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
footer { padding-bottom: 36px; color: var(--muted); font-size: .88rem; }
footer a { margin-right: 14px; }