/* Shared look for the Terms of service and Privacy statement pages. */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --line: #dedbd2;
  --accent: #2b5fd9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1d;
    --surface: #2a2a2d;
    --text: #ececec;
    --muted: #a3a3a3;
    --line: #3a3a3d;
    --accent: #7ea2ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1b1d;
  --surface: #2a2a2d;
  --text: #ececec;
  --muted: #a3a3a3;
  --line: #3a3a3d;
  --accent: #7ea2ff;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, "Segoe UI", "Leelawadee UI", "Noto Sans Thai", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}
header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
header a.back { color: var(--accent); text-decoration: none; font-size: 15px; }
header .spacer { flex: 1; }
.lang { display: flex; gap: 6px; }
.lang button {
  font: inherit;
  font-size: 14px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
article { background: var(--surface); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); }
h1 { font-size: 26px; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 28px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.note { padding: 10px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 6px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--accent); overflow-wrap: anywhere; }
.email { white-space: nowrap; }
code { font: 13px ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: var(--bg); overflow-wrap: anywhere; }
.links { list-style: none; padding: 0; }
.links li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links li strong { grid-column: 1 / -1; }
button[data-copy] { font: inherit; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--accent); cursor: pointer; }
ol li { margin: 6px 0; }
.one-tap-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.get-shortcut { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
footer { margin-top: 20px; color: var(--muted); font-size: 14px; text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
