/* Ôm Garden — trang pháp lý tĩnh (/chinh-sach-bao-mat, /dieu-khoan-su-dung).
   Tự chứa: không JS, không CDN; font Be Vietnam Pro + Mali bundle trong ./fonts (SIL OFL 1.1).
   Token màu/chữ theo docs/design-guidelines.md. */

@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/be-vietnam-pro-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/be-vietnam-pro-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mali"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/mali-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Mali"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/mali-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --moss-900: #22321f;
  --moss-800: #344d30;
  --moss-700: #456540;
  --moss-500: #6e8a5f;
  --sprout-400: #a8c47c;
  --sprout-200: #dce8c3;
  --sprout-100: #eef4e1;
  --cream-50: #fffceb;
  --cream-25: #fffef7;
  --ink-600: #5e6359;
  --ink-400: #9a9e93;
  --line: #e6e3d3;
  --shadow: 0 1px 2px rgba(52, 77, 48, 0.06), 0 4px 16px rgba(52, 77, 48, 0.06);
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Mali", "Be Vietnam Pro", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--moss-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--moss-700); text-decoration-color: var(--sprout-400); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--moss-800); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--sprout-400); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: var(--moss-700); color: var(--cream-50); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; border-radius: 12px; text-decoration: none; }
.brand .mark { width: 54px; }
.brand .rule { width: 1px; height: 32px; background: var(--line); }
.brand .tagline { width: 112px; }
@media (min-width: 768px) { .brand .mark { width: 60px; } .brand .tagline { width: 136px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--cream-25); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--moss-700); font-size: 15px; font-weight: 500; line-height: 20px;
  white-space: nowrap; text-decoration: none;
}
.pill:hover { background: var(--sprout-100); color: var(--moss-800); }
.pill svg { width: 17px; height: 17px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 8px; }
.hero .wrap { display: grid; gap: 24px; align-items: end; }
@media (min-width: 768px) { .hero { padding-top: 40px; } .hero .wrap { grid-template-columns: minmax(0, 1fr) 180px; } }
.eyebrow { margin: 0; color: var(--moss-500); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin: 8px 0 0; color: var(--moss-700); font-family: var(--font-hand); font-size: 32px; font-weight: 600; line-height: 40px; }
@media (min-width: 768px) { .hero h1 { font-size: 40px; line-height: 48px; } }
.lead { margin: 12px 0 0; max-width: 640px; color: var(--ink-600); font-size: 16px; line-height: 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  background: var(--sprout-100); color: var(--moss-800); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.chip.strong { background: var(--sprout-200); }
.hero .art { display: none; }
@media (min-width: 768px) {
  .hero .art { display: block; width: 180px; justify-self: end; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
}

/* ---------- Layout: mục lục + nội dung ---------- */
.layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 32px; padding-bottom: 80px; }
}

.toc {
  padding: 16px; border-radius: 20px;
  background: var(--cream-25); box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 1024px) { .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px; } }
.toc h2 { margin: 0 0 8px; padding: 0 10px; color: var(--moss-500); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px;
  color: var(--moss-800); font-size: 16px; line-height: 24px; text-decoration: none;
}
.toc a::before { content: counter(toc) "."; min-width: 20px; color: var(--moss-500); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--sprout-100); }

/* ---------- Nội dung ---------- */
.prose { max-width: 720px; min-width: 0; }
.prose > section { scroll-margin-top: 24px; padding-top: 8px; }
.prose > section + section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose h2 { margin: 0; color: var(--moss-700); font-size: 20px; font-weight: 700; line-height: 28px; }
@media (min-width: 768px) { .prose h2 { font-size: 24px; line-height: 32px; } }
.prose h2 .no { color: var(--moss-500); font-variant-numeric: tabular-nums; }
.prose h3 { margin: 24px 0 0; color: var(--moss-800); font-size: 16px; font-weight: 600; line-height: 24px; }
.prose p { margin: 12px 0 0; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; }
.prose li { margin-top: 6px; padding-left: 4px; }
.prose ul > li::marker { color: var(--sprout-400); }
.prose ol > li::marker { color: var(--moss-500); font-weight: 600; }
.prose strong { color: var(--moss-800); font-weight: 600; }
.prose a { white-space: nowrap; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--sprout-100); color: var(--moss-800); font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.muted { color: var(--ink-600); }

.note {
  margin: 16px 0 0; padding: 16px; border-radius: 12px;
  background: var(--sprout-100); box-shadow: inset 3px 0 0 var(--sprout-400);
}
.note > :first-child { margin-top: 0; }
.note p, .note ul { margin-top: 8px; }

.summary { margin: 0; padding: 20px; border-radius: 20px; background: var(--cream-25); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.summary h2 { font-size: 20px; line-height: 28px; }
.summary ul { margin-top: 12px; padding-left: 0; list-style: none; }
.summary li { position: relative; margin-top: 8px; padding-left: 28px; }
.summary li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--sprout-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23456540' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.prose .cards { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .card { margin: 0; padding: 16px; border-radius: 12px; background: var(--cream-25); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 0; font-size: 16px; line-height: 24px; }
.card p { margin: 6px 0 0; color: var(--ink-600); font-size: 16px; line-height: 24px; }
.card p strong { color: var(--moss-800); }

.policy {
  margin: 16px 0 0; padding: 16px; border-radius: 12px;
  background: var(--cream-25); box-shadow: inset 0 0 0 1px var(--sprout-400);
}
.policy > :first-child { margin-top: 0; }
.policy ul { margin-top: 8px; }

.effective { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-600); font-size: 15px; line-height: 24px; }
.effective p { margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(238, 244, 225, 0.6); }
.site-footer .cols { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 640px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; padding-top: 48px; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer .cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } .site-footer .cols > :first-child { grid-column: auto; } }
.site-footer .brandline { display: flex; align-items: center; gap: 16px; }
.site-footer .brandline .mark { width: 60px; }
.site-footer .brandline .tagline { width: 136px; }
.site-footer .about { margin: 16px 0 0; max-width: 320px; color: var(--ink-600); font-size: 16px; line-height: 24px; }
.site-footer h2 { margin: 0; color: var(--moss-500); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.site-footer .links a { color: var(--moss-800); font-size: 16px; line-height: 24px; text-decoration: none; white-space: nowrap; }
.site-footer .links a:hover { color: var(--moss-700); text-decoration: underline; text-decoration-color: var(--sprout-400); }
.site-footer .links a[aria-current="page"] { color: var(--moss-700); font-weight: 600; }
.site-footer address { margin: 16px 0 0; color: var(--moss-800); font-size: 16px; font-style: normal; line-height: 24px; }
.site-footer address p { margin: 8px 0 0; }
.site-footer address p:first-child { margin-top: 0; }
.site-footer address a { white-space: nowrap; }
.site-footer .bar { border-top: 1px solid var(--line); }
.site-footer .bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 16px; padding-bottom: 16px; color: var(--ink-400); font-size: 12px; line-height: 16px; }
.site-footer .bar p { margin: 0; }

@media print {
  .site-header .pill, .toc, .hero .art, .skip { display: none; }
  body { background: #fff; }
  .layout { display: block; }
  .prose a { color: inherit; }
}
