/* Public pages for Daily Brain 5 (terms, privacy, legal notice, support). Colours follow docs/design/README.md. */
:root {
  --ground: #e7e7e3;
  --plate: #efefeb;
  --line: #c8cac5;
  --text: #141719;
  --text2: #41474b;
  --accent: #c2361c;
  --fill-bg: #fff3c4;
  --fill-text: #5a4300;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141618;
    --plate: #1a1d20;
    --line: #2c3135;
    --text: #eceae4;
    --text2: #aeb2b4;
    --accent: #e8553a;
    --fill-bg: #4a3a00;
    --fill-text: #ffe8a3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
header.site a.home { color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
nav.lang a { color: var(--text2); margin-left: 12px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 28px 0 4px; }
h2 { font-size: 1.15rem; margin: 36px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 20px 0 4px; }
p.meta { color: var(--text2); font-size: 0.9rem; margin: 0 0 20px; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
th { background: var(--plate); width: 32%; font-weight: 600; }
table.wide th { width: auto; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
.fill { background: var(--fill-bg); color: var(--fill-text); padding: 0 4px; border-radius: 3px; }
.links { list-style: none; padding: 0; }
.links li { margin: 10px 0; }
footer { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text2); font-size: 0.85rem; }
footer a { color: var(--text2); margin-right: 14px; }
@media (max-width: 520px) {
  th { width: 38%; }
  th, td { padding: 6px 8px; }
}
