:root {
  --cts-green: #015f1d;
  --cts-green-deep: #013a10;
  --cts-green-mid: #2e8e4a;
  --cts-green-soft: #ddf5e3;
  --cts-green-mist: #f2fbf4;
  --cts-yellow: #ffc025;
  --ink: #1a2420;
  --muted: #5b6b66;
  --line: #d5e5da;
  --white: #fff;
  --shadow: 0 18px 48px rgba(1, 95, 29, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(190, 236, 200, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 220, 132, 0.28), transparent 50%),
    linear-gradient(180deg, var(--cts-green-mist) 0%, #fff 28%, #f7fbf8 100%);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--cts-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cts-green-deep); }

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

.container {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(1, 95, 29, 0.18);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--cts-green-deep);
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--cts-green-mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.doc-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.doc-nav a:hover { color: var(--cts-green); }

.doc-nav a.active {
  background: var(--cts-green);
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--cts-green-deep);
  color: #fff;
}

.policy-hero {
  padding: 56px 0 28px;
}

.policy-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cts-green-mid);
  margin-bottom: 14px;
}

.policy-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cts-green-deep);
}

.policy-hero .lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cts-yellow);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 80px;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1.4;
}

.toc a:hover { color: var(--cts-green); }

.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 42px;
}

.policy-card section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.policy-card section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--cts-green-deep);
  scroll-margin-top: 100px;
}

.policy-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.policy-card p,
.policy-card li {
  color: #3d4d47;
  font-size: 15px;
}

.policy-card p { margin: 0 0 12px; }

.policy-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.policy-card li { margin-bottom: 6px; }

.contact-box {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--cts-green-mist);
  border: 1px solid var(--line);
}

.contact-box p { margin: 0 0 6px; }
.contact-box p:last-child { margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #062412;
  color: #a8c4b0;
  padding: 36px 0 28px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}

.footer-row a {
  color: #d7ebe0;
  text-decoration: none;
}

.footer-row a:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

[data-lang-content] { display: none; }
html[lang="vi"] [data-lang-content="vi"],
html[lang="en"] [data-lang-content="en"] { display: contents; }

html[lang="vi"] .only-en,
html[lang="en"] .only-vi { display: none !important; }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .doc-nav { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 920px); }
  .nav-wrap { height: 64px; }
  .brand-text small { display: none; }
  .policy-hero { padding-top: 36px; }
  .policy-card { padding: 28px 22px; border-radius: 16px; }
  .lang-switch button { padding: 8px 10px; }
}
