:root { --bg: #faf8f4; --surface: #fff; --text: #1f1d1a; --muted: #6f6a62; --border: #e4dfd6; --accent: #e2a03f; --accent-ink: #8a5a12; }
@media (prefers-color-scheme: dark) { :root { --bg: #171614; --surface: #211f1c; --text: #ece8e1; --muted: #a09a90; --border: #3a3631; --accent: #f0b45a; --accent-ink: #f0b45a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.brand { text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.wm-light { font-weight: 400; color: var(--muted); }
.legal { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.legal section + section { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.legal h1 { font: 500 clamp(28px, 4vw, 36px)/1.2 Literata, Georgia, serif; margin: 0 0 6px; }
.legal h2 { font-size: 17px; margin: 30px 0 6px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 20px; }
.muted { color: var(--muted); font-size: 14px; }
mark.todo { background: #ffe58a; color: #3a2e00; padding: 0 3px; border-radius: 3px; }
.legal-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 24px 16px 40px; }

/* wordmark R3: one line under "LupaReader" — ink under Lupa (follows the theme), amber under Reader */
.wm-line { display: inline-flex; padding-bottom: .3em; }
.wm-line > span { position: relative; }
.wm-line > span::after { content: ""; position: absolute; bottom: -.28em; height: .17em; }
.wm-line > .wm-a::after { left: .03em; right: 0; background: currentColor; border-radius: .09em 0 0 .09em; }
.wm-line > .wm-light::after { left: 0; right: .04em; background: var(--accent, #e2a03f); border-radius: 0 .09em .09em 0; }
