:root {
  --bg: #f6f3ee; --surface: #ffffff; --text: #22201c; --muted: #6b655c;
  --line: #e2dbd0; --accent: #b8632b;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17181b; --surface: #212226; --text: #ece8e1; --muted: #a39d93;
    --line: #34353b; --accent: #e8945a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
header .brand { font-weight: 700; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card h2 { margin-top: 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
footer { margin-top: 40px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer a { color: var(--muted); }
.legal h1 { font-size: 1.5rem; }
.legal h2 { font-size: 1.1rem; margin-top: 32px; }
.legal p, .legal li { font-size: .97rem; }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
th { font-weight: 600; }
code { font-size: .9em; }
@media (max-width: 600px) {
  .table table, .table thead, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--surface); }
  .table td { border: 0; border-top: 1px solid var(--line); }
  .table td:first-child { border-top: 0; font-weight: 600; }
  .table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
}
