/* The legal pages' look (privacy.html, terms.html, about.html - 2026-11-01). Plain CSS, system/serif fonts only:
   no web fonts and no third-party requests, so the pages say exactly what they do. Art: assets/legal/*.jpg. */
:root {
  color-scheme: dark;
  --bg: #0a0710; --panel: #140f1c; --panel2: #1b1426; --line: #2f2440; --text: #ebe5f5; --muted: #a99bb9;
  --gold: #e2b25a; --gold2: #f6d58e; --violet: #a78bfa; --ember: #f59e0b; --icon-bg: #090212;
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(124,58,237,.18), transparent 70%),
                    radial-gradient(900px 500px at 50% 110%, rgba(226,178,90,.07), transparent 70%); background-attachment: fixed; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--gold2); }

/* hero */
.hero { position: relative; height: clamp(240px, 42vw, 440px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,16,.25) 0%, rgba(10,7,16,.1) 40%, rgba(10,7,16,.85) 85%, var(--bg) 100%); }
.hero .title { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; padding: 0 16px; }
.hero .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold2);
  font-family: var(--serif); letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; text-shadow: 0 2px 8px #000; }
.hero .brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 10px #000; }
.hero h1 { margin: 6px 0 2px; font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.1; color: #fff3d6;
  text-shadow: 0 2px 0 #4a2a06, 0 4px 18px rgba(0,0,0,.9), 0 0 30px rgba(226,178,90,.35); }
.hero .meta { color: var(--gold2); font-size: .95rem; text-shadow: 0 1px 6px #000; }

main { max-width: 900px; margin: 0 auto; padding: 8px 16px 70px; }

/* ornate divider */
.rule { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rule span { font-size: 1.1rem; letter-spacing: 6px; }

/* intro + at a glance */
.intro { font-size: 1.08rem; text-align: center; color: #e2dcef; max-width: 760px; margin: 18px auto 6px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.glance.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .glance.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .glance.four { grid-template-columns: 1fr; } }
.glance .g { display: flex; gap: 12px; align-items: center; background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.glance .g b { color: var(--gold2); display: block; font-family: var(--serif); font-size: 1.02rem; }
.glance .g span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.ico { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--icon-bg); border: 1px solid #4b3a1c;
  box-shadow: 0 0 0 3px rgba(226,178,90,.12), 0 4px 14px rgba(0,0,0,.5); overflow: hidden; }
.ico img { width: 100%; height: 100%; display: block; }

/* contents */
nav.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
nav.toc h2 { margin: 0 0 8px; font-family: var(--serif); color: var(--gold); font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; }
nav.toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 28px; }
nav.toc li { margin: 2px 0; break-inside: avoid; }
nav.toc a { color: var(--text); text-decoration: none; }
nav.toc a:hover { color: var(--gold2); }

/* sections */
section.s { position: relative; background: linear-gradient(180deg, rgba(27,20,38,.92), rgba(20,15,28,.92));
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 14px; margin: 18px 0; scroll-margin-top: 14px; }
section.s::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.s header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.s h2 { margin: 0; font-family: var(--serif); color: var(--gold2); font-size: 1.35rem; line-height: 1.25; }
.s h2 small { display: block; color: var(--muted); font: 600 .72rem/1.4 'Segoe UI', system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.s h3 { font-family: var(--serif); color: #f3ead6; font-size: 1.08rem; margin: 16px 0 4px; }
.s ul { padding-left: 22px; margin: 6px 0 10px; }
.s li { margin: 4px 0; }
.plain { background: rgba(167,139,250,.08); border-left: 3px solid var(--violet); border-radius: 0 10px 10px 0; padding: 8px 12px; margin: 8px 0 12px;
  color: #ddd3f2; font-size: .96rem; }
.plain::before { content: "In plain words: "; color: var(--violet); font-weight: 700; }
.key { background: rgba(226,178,90,.08); border: 1px solid rgba(226,178,90,.35); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.key b:first-child { color: var(--gold2); }
.caps { text-transform: uppercase; font-size: .9rem; letter-spacing: .2px; color: #e8e0f3; }
.fill { background: #7c2d12; color: #fff; border-radius: 4px; padding: 0 6px; font-weight: 700; }

.tablewrap { overflow-x: auto; margin: 8px 0 12px; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: #1f1630; color: var(--gold2); font-family: var(--serif); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #f3ead6; font-weight: 600; }

footer.f { margin-top: 40px; text-align: center; color: var(--muted); font-size: .92rem; }
footer.f nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
footer.f nav a { color: var(--gold2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; background: var(--panel); }
footer.f nav a:hover { border-color: var(--gold); }
.play { display: inline-block; margin: 8px 0 0; padding: 10px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #2a1402;
  background: linear-gradient(180deg, #fcd34d, #b45309); box-shadow: 0 4px 16px rgba(180,83,9,.4); font-family: var(--serif); letter-spacing: 1px; }
.play:hover { color: #2a1402; filter: brightness(1.08); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  section.s { padding: 16px 14px 10px; }
  .ico { width: 48px; height: 48px; }
  .s h2 { font-size: 1.2rem; }
}
