/* #region zone:home.privacy.style — นโยบายข้อมูลสุขภาพภาษาไทยและอังกฤษ */
/* Values from health-mono-tokens.css; public aliases keep policy independent of Health's switch. */
@font-face {
  font-family: 'Anuphan Health';
  src: url('/home/fonts/Anuphan.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Health';
  src: url('/home/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --fs-body: 16px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-label: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-subtitle: 18px;
  --fs-title: 20px;
  --fs-section: 21px;
  --fs-stat: 24px;
  --fs-hero: clamp(30px, 4vw, 48px);
  --fs-heading: clamp(22px, 3vw, 28px);
  --fs-policy-title: clamp(28px, 3vw, 34px);
  --fs-guide-stat: clamp(24px, 4vw, 32px);
  --bg: #ffffff;
  --panel: #f3f3f3;
  --hover: #e6e6e6;
  --text: #000000;
  --muted: #6b6b6b;
  --line: #cfcfcf;
  --accent-text: var(--text);
  --wash: var(--panel);
  --card-shadow: none;
  --target: 48px;
  --r-card: 32px;
  --r-control: 20px;
  --font-sans: 'Geist Health', 'Anuphan Health', system-ui, sans-serif;
  --reading-max: 800px;
  --reading-gutter: clamp(20px, 4vw, 32px);
  --reading-space: 32px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --panel: #111111;
    --hover: #222222;
    --text: #ffffff;
    --muted: #9a9a9a;
    --line: #333333;
  }
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs-body)/1.55 var(--font-sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
}
.topbar {
  background: var(--bg);
}
.topbar-inner {
  max-width: 1536px;
  margin-inline: auto;
  padding: 14px clamp(20px, 3.4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--target);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  border-radius: var(--r-control);
}
.brand picture,
.brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.35);
}
.brand span {
  display: grid;
  line-height: 1.25;
}
.brand small {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
nav a {
  display: flex;
  align-items: center;
  min-height: var(--target);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
nav a:hover {
  background: var(--hover);
  color: var(--text);
}
.reading {
  max-width: calc(var(--reading-max) + 2 * var(--reading-gutter));
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--reading-gutter) 64px;
}
.policy-heading {
  margin: 0 0 var(--reading-space);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: var(--fs-policy-title);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.policy-heading p {
  color: var(--muted);
  font-size: var(--fs-md);
}
.policy-card {
  padding: clamp(20px, 4vw, 40px);
  background: var(--panel);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
}
section {
  max-width: 72ch;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
section + section {
  margin-top: var(--reading-space);
  padding-top: var(--reading-space);
  border-top: 0;
}
h2 {
  font-size: var(--fs-section);
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 16px;
}
h3 {
  font-size: var(--fs-subtitle);
  font-weight: 650;
  margin: 24px 0 12px;
}
p + p {
  margin-top: 16px;
}
.page-nav {
  padding: 4px;
  border-radius: 28px;
  background: var(--panel);
  gap: 8px;
}
.page-nav a {
  padding: 8px 15px;
  justify-content: center;
  color: var(--muted);
}
.page-nav a[aria-current='page'] {
  background: var(--text);
  color: var(--bg);
}
@media (max-width: 600px) {
  /* five links as two even rows (3 + 2), each row filling the full width: equal cells, nothing off-centre */
  .page-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-radius: 20px;
  }
  .page-nav a {
    grid-column: span 2;
    border-radius: 16px;
  }
  .page-nav a:nth-child(n + 4) {
    grid-column: span 3;
  }
}
.brand picture:has(img[src='/home/brand/mark.svg']),
.brand img[src='/home/brand/mark.svg'] {
  filter: none;
}
/* #endregion */
