/* Privacy policy + terms of service (2026-09-29). Same tokens as styles.css. */
body.legal { background: var(--page); color: var(--ink); min-height: 100%; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; margin-bottom: 16px; }
.legal-top a.home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Mitr, sans-serif; font-size: 18px; }
.legal-top img { width: 40px; height: 40px; border-radius: 50%; image-rendering: pixelated; background: #efe6fd; }
.lang { display: flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: #fff; font: 500 13px "IBM Plex Sans Thai", sans-serif; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed=true] { background: #fff; color: var(--purple-deep); }
.doc { background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 28px 28px 32px; line-height: 1.75; font-size: 15px; }
@media (max-width: 560px) { .doc { padding: 22px 18px 26px; } }
.doc h1 { font-family: Mitr, "IBM Plex Sans Thai", sans-serif; font-weight: 500; font-size: 26px; margin: 0 0 4px; line-height: 1.35; }
.doc .meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.doc h2 { font-size: 17px; margin: 26px 0 6px; }
.doc p, .doc li { margin: 6px 0; }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.doc th { background: var(--accent-tint); font-weight: 600; }
.doc a { color: var(--accent); }
.doc .box { background: var(--accent-tint); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.tbl-scroll { overflow-x: auto; }
.legal-foot { text-align: center; color: rgba(255,255,255,.7); font-size: 13px; margin-top: 18px; }
.legal-foot a { color: #fff; }
[hidden] { display: none !important; }
