/* Shared by privacy.html and terms.html; tokens copied from index.html */
:root {
  --blue: #0b6fd9;
  --blue-dark: #0758b0;
  --blue-soft: #eaf4ff;
  --ink: #0f1e33;
  --text: #2a3a52;
  --muted: #5a6b82;
  --line: #e3ebf5;
  --bg: #ffffff;
  --bg-alt: #f6faff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }
.container { width: min(760px, 100% - 32px); margin-inline: auto; }

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; width: min(1120px, 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; mix-blend-mode: multiply; }
.brand span { color: var(--blue); }
.lang { display: flex; gap: 4px; }
.lang a { padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; }
.lang a:hover { background: var(--blue-soft); color: var(--blue-dark); }

main { padding: 56px 0 88px; }
article { scroll-margin-top: 84px; } /* keep the heading clear of the sticky header */
article + article { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.eyebrow { color: var(--blue-dark); font-weight: 600; font-size: 15px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.3; margin: 4px 0 8px; text-wrap: balance; }
.meta { color: var(--muted); font-size: 15px; }
.summary { background: var(--blue-soft); border-radius: 16px; padding: 24px 28px; margin-top: 32px; }
.summary h2 { font-size: 18px; margin: 0 0 8px; }
article h2 { font-size: 22px; line-height: 1.4; margin: 40px 0 10px; text-wrap: balance; }
article h3 { font-size: 18px; margin: 24px 0 6px; }
article p, article li { color: var(--text); }
article p + p { margin-top: 12px; }
article ul { padding-left: 1.3em; margin: 8px 0; }
article li + li { margin-top: 6px; }
code {
  font-family: ui-monospace, Consolas, monospace; font-size: .86em;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere;
}

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: min(1120px, 100% - 32px); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--blue-dark); }

@media (max-width: 520px) {
  .brand .full { display: none; }
  main { padding-top: 40px; }
  .summary { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
