/* หน้า privacy และ terms ใช้ token และ header ชุดเดียวกับ index.html */
:root {
  color-scheme: light;
  --ground: #f6f9fd;
  --paper: #ffffff;
  --ink: #13213a;
  --ink-soft: #4a5b73;
  --line: #d5e1ef;
  --cobalt: #1846a3;
  --cobalt-deep: #0f2f73;
  --focus: #f2b84b;
  --display: "Chonburi", Georgia, serif;
  --sans: "IBM Plex Sans Thai Looped", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--ground); color: var(--ink); }
body { margin: 0; font: 400 17px/1.75 var(--sans); }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

html[lang="th"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [lang="th"]:not(html) { display: none !important; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cobalt-deep); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(180deg, #0569f2, #5ddde6); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font: 400 19px/1 var(--display); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button { border: 0; background: none; border-radius: 999px; padding: 5px 11px; font: 600 13px/1 var(--sans); color: var(--ink-soft); cursor: pointer; }
html[lang="th"] .lang [data-lang="th"], html[lang="en"] .lang [data-lang="en"] { background: var(--cobalt); color: #fff; }

.doc { max-width: 820px; padding: 56px 0 72px; }
.doc article { background: var(--paper); border: 1px solid var(--line); padding: 44px 48px; }
.doc h1, .doc h2 { font-family: var(--display); font-weight: 400; line-height: 1.3; color: var(--cobalt-deep); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin: 6px 0 28px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li b { color: var(--cobalt-deep); font-weight: 600; }
.doc address { font-style: normal; }
.doc .other { margin-top: 24px; font-size: 15px; color: var(--ink-soft); }

footer { padding: 0 0 44px; font-size: 14px; color: var(--ink-soft); }
footer .f-main, footer .f-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 32px; }
footer .f-base { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
footer b { color: var(--ink); font-weight: 600; }
footer a { color: var(--ink-soft); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer .credit a { color: var(--ink); font-weight: 600; }
footer .credit a:hover { color: var(--cobalt); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .doc { padding: 28px 0 48px; }
  .doc article { padding: 28px 20px; }
}
