/* Chân trang trang giới thiệu và ba trang chính sách (src/site-policy.js), 21.32.8: BA CỘT (thương hiệu | giấy phép | chính sách), hàng cuối bản quyền + câu miễn trừ. Tệp RIÊNG, dùng biến màu của trang-chu.css (--deep, --amber...).
   Chữ >= 14 px; chữ sáng trên nền --deep tương phản >= 7 (chữ mờ >= 4,5); liên kết cao >= 44 px; điện thoại một cột, từ 640 px thương hiệu một hàng riêng rồi hai cột, từ 900 px ba cột; không tràn ngang.
   Cột không có dữ liệu thì không dựng (cp-cols-1 / 2 / 3). */

/* ===== Khung và lưới ba cột ===== */
.cp-foot { background-color: var(--deep); color: #d3e6df; }
.cp-wrap { max-width: 1040px; margin: 0 auto; padding: 38px 16px 0; text-align: left; }
.cp-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cp-cols > * { min-width: 0; }
.cp-foot h2 { margin: 0 0 10px; color: var(--amber); font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; }
.cp-foot a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ===== Cột 1: thương hiệu (dòng lớn viết HOA bằng CSS, dữ liệu giữ nguyên) ===== */
.cp-brand p { margin: 0; overflow-wrap: anywhere; }
.cp-brand-n { color: #fff; font-size: clamp(16px, 5.2vw, 24px); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.cp-brand-l { color: #d3e6df; font-size: 15px; line-height: 1.5; }
.cp-brand-t { color: #b9d3cb; font-size: 15px; line-height: 1.5; }
.cp-brand-n + p { margin-top: 12px; }
.cp-brand-l + p { margin-top: 4px; }

/* ===== Cột 2: giấy phép (nhãn nhỏ mờ, số chữ đậm), liên kết Bộ Công Thương, ghi chú ===== */
.cp-lics { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cp-lic-k { display: block; color: #b9d3cb; font-size: 14px; line-height: 1.4; }
.cp-lic-v { display: block; margin-top: 2px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cp-bct, .cp-note { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.cp-lic h2 + p { margin-top: 0; }
.cp-bct a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cp-note { color: #d3e6df; overflow-wrap: anywhere; }
/* 21.32.18: giờ + phạm vi dưới các giấy phép (nhãn mờ 14 px, chữ 15 px; chi tiết ở site-policy.js) */
.cp-ops { display: grid; gap: 12px; margin: 14px 0 0; }
.cp-lics + .cp-ops { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.cp-op { margin: 0; }
.cp-op-k { display: block; color: #b9d3cb; font-size: 14px; line-height: 1.4; }
.cp-op-v { display: block; margin-top: 2px; color: #d3e6df; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }

/* ===== Cột 3: ba liên kết chính sách (mỗi dòng cao >= 44 px) và Đăng nhập nhân viên ===== */
.cp-nav ul { margin: 0; padding: 0; list-style: none; }
.cp-nav li + li, .cp-staff { border-top: 1px solid rgba(255,255,255,.12); }
.cp-nav a, .cp-staff a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: #fff; font-size: 15px; line-height: 1.35; text-decoration: none; }
.cp-nav a:hover, .cp-staff a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-nav a[aria-current="page"] { color: var(--amber); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cp-staff { margin: 0; }
.cp-staff a { color: #d3e6df; }

/* ===== Hàng cuối: đường kẻ mảnh, bản quyền, câu miễn trừ (căn giữa) ===== */
.cp-bottom { margin-top: 34px; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.16); text-align: center; }
.cp-copy { margin: 0 0 6px; color: #d3e6df; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cp-disc { max-width: 760px; margin: 0 auto; color: #b9d3cb; font-size: 14px; line-height: 1.6; }

/* Từ 640 px hai cột; ba cột thì thương hiệu cả hàng trên, giấy phép | chính sách hàng dưới. Từ 900 px ba cột; giấy phép (nhiều chữ nhất) không hẹp nhất; thương hiệu >= 361 px (tên miền một dòng), chính sách >= 283 px (liên kết một dòng) */
@media (min-width: 640px) {
  .cp-cols-2, .cp-cols-3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 40px; }
  .cp-cols-3 > :first-child { grid-column: 1 / -1; }
  .cp-brand-n { font-size: clamp(20px, 2.8vw, 24px); }
}
@media (min-width: 900px) {
  .cp-cols-3 { grid-template-columns: minmax(0, 1.27fr) repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .cp-cols-3 > :first-child { grid-column: auto; }
  .cp-brand-n { font-size: clamp(19px, 2vw, 22px); }
}
/* Điện thoại (< 720 px, cùng mốc thanh đáy .hm-dock): nút Nhạc nhẹ cố định (bottom 82px, cao 48px) che các dòng cuối câu miễn trừ; đệm đáy hàng cuối cao hơn nút + vùng an toàn iPhone. Chỉ khi có .js (trang chính sách không có nút nhạc). Lý do đầy đủ: site-policy.js */
@media screen and (max-width: 719px) { .js .cp-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ===== Liên kết tới danh mục xét nghiệm (/danh-muc/) trong thẻ "Dịch vụ trực tuyến": nút phụ cả bề ngang, chữ xuống dòng được ở 375 px ===== */
.hm-svc-more { margin: 12px 0 0; }
.hm-svc-more .ps-link { display: flex; box-sizing: border-box; width: 100%; padding: 10px 16px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.hm-svc-more .ps-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ===== Ba trang chính sách ===== */
body.cs-page { padding-bottom: 0; }
.cs-head { background-color: var(--deep); color: #fff; padding: 12px 16px; }
.cs-head-in { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-logo { display: block; width: auto; height: 44px; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; }
.cs-brand { flex: 1 1 180px; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.cs-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.cs-back:hover { background-color: rgba(255,255,255,.12); }
.cs-head a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.cs-main { max-width: 860px; margin: 0 auto; padding: 26px 16px 34px; }
.cs-art h1 { margin: 0 0 12px; font-size: clamp(22px, 5.6vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
.cs-art h2 { margin: 28px 0 8px; font-size: 19px; line-height: 1.35; }
.cs-art p, .cs-art li { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.cs-art p { margin: 0 0 10px; }
.cs-art ul { margin: 0 0 10px; padding-left: 22px; }
.cs-art li { margin: 0 0 6px; }
.cs-art a { color: var(--pri); font-weight: 700; }
.cs-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.cs-list li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background-color: var(--card); }
.cs-list a { display: block; padding: 4px 0; font-size: 17px; }
.cs-list span { display: block; color: var(--mut); font-size: 15px; line-height: 1.5; }
.cs-update { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; }
@media print { .cs-head, .cp-pol { display: none !important; } .cp-foot { background: #fff; color: #000; } .cp-foot * { color: #000 !important; } .cp-bottom { border-top-color: #999; } }

/* Lối tắt "Nội bộ" (21.32.15.2; public-site.js internalHtml), chỉ khi bật: chữ nhỏ nhạt góc dưới TRÁI (góc phải có nút Nhạc); lề âm -4px bù đệm vùng bấm cho thẳng lề chân trang */
.hm-int { background-color: var(--deep); }
.hm-int-in { max-width: 1040px; margin: 0 auto; padding: 0 16px 8px; display: flex; justify-content: flex-start; }
.hm-int a { display: inline-flex; align-items: center; min-height: 44px; margin-left: -4px; padding: 0 4px; color: #b9d3cb; font-size: 14px; line-height: 1.3; text-decoration: none; opacity: .85; }
.hm-int a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.hm-int a:focus-visible { opacity: 1; outline: 3px solid var(--amber); outline-offset: 2px; }
/* Điện thoại: cộng vùng an toàn (thanh vuốt) để thanh đáy .hm-dock không che liên kết */
@media screen and (max-width: 719px) { .hm-int-in { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
/* 720-1119 px: khối này đẩy câu miễn trừ (tối đa 760 px, giữa) vào dải 82-130 px trên đáy của nút Nhạc; đệm 64 px nâng dòng thấp nhất lên 136 px */
@media screen and (min-width: 720px) and (max-width: 1119px) { .hm-int-in { padding-bottom: 64px; } }
@media print { .hm-int { display: none !important; } }
