/* Terms & Conditions and Privacy Policy pages. Same tokens, header and footer as index.html. */
:root {
  --bg: #f5f7f2; --surface: #ffffff; --surface-2: #eaf0e8; --ink: #16241f; --muted: #5b6a63; --line: #d8e1d9;
  --palm: #12463a; --palm-2: #1d6b58; --on-palm: #f2f7f3; --mango: #f2a93b; --on-mango: #2b1a02;
  --display: 'Bricolage Grotesque', 'Kantumruy Pro', ui-sans-serif, system-ui, sans-serif;
  --body: 'Figtree', 'Kantumruy Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --khmer: 'Kantumruy Pro', 'Figtree', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1613; --surface: #13211d; --surface-2: #182a25; --ink: #e6efe9; --muted: #9db0a7;
    --line: #253a33; --palm: #2f8b72; --palm-2: #3aa587; --on-palm: #06120e; --mango: #f4b24f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1613; --surface: #13211d; --surface-2: #182a25; --ink: #e6efe9; --muted: #9db0a7;
  --line: #253a33; --palm: #2f8b72; --palm-2: #3aa587; --on-palm: #06120e; --mango: #f4b24f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
:root[lang="km"] body { line-height: 1.9; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.km { font-family: var(--khmer); }

/* Header (as index.html) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px;
  font: 600 15px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--mango); color: var(--on-mango); }
.btn-primary:hover { background: #f6b955; }
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--palm); display: grid; place-items: center; }
/* Logo: dark-green version on light backgrounds, white version in dark mode. */
.brand .logo { display: block; height: 44px; width: auto; }
footer .brand .logo { height: 52px; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (max-width: 480px) { .nav .brand .logo { height: 38px; } }
.site-lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin-left: auto; }
.site-lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 99px; cursor: pointer; }
.site-lang button.km { font-family: var(--khmer); font-size: 12.5px; padding-block: 5px; }
.site-lang button[aria-pressed="true"] { background: var(--palm); color: var(--on-palm); }
.nav-login { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .nav-login { display: none; } }
@media (max-width: 480px) { .nav .btn { display: none; } .brand { font-size: 18px; } }

/* Document */
.doc-head { padding-block: clamp(40px, 7vw, 72px) 28px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--palm-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
:root[lang="km"] h1, :root[lang="km"] h2, :root[lang="km"] h3 { font-family: var(--khmer); line-height: 1.5; letter-spacing: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-top: 12px; }
.updated { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.lede { max-width: 720px; margin: 18px 0 0; font-size: 18px; color: var(--muted); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 36px 72px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc p { margin: 0 0 10px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
article { max-width: 760px; }
article section { padding-bottom: 8px; }
article section + section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
article h2 { font-size: clamp(22px, 2.6vw, 27px); font-weight: 700; margin-bottom: 12px; }
article h3 { font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
article p { margin: 0 0 12px; }
article ul { margin: 0 0 12px; padding-left: 22px; }
article li { margin-bottom: 6px; }
article a { color: var(--palm-2); }
.note { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); font-size: 15px; }

/* Footer (as index.html, plus legal links and accepted payments) */
footer { padding-block: 48px 40px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.accept { display: inline-flex; align-items: center; gap: 10px; }
.accept img {  height: auto; width: 70px;  box-sizing: content-box; }
