/* ==========================================================================
   VDT Thư viện văn bản pháp luật — giao diện công khai.
   Mọi selector có tiền tố .vdt-legal-*; chỉ nạp trên trang thư viện.
   Font: kế thừa font của theme (không đổi font toàn site). Chỉ dùng weight 400/600/700.
   ========================================================================== */

.vdt-legal {
	--vl-navy: #0f2f63;
	--vl-navy-2: #0b1f3a;
	--vl-blue: #1d4ed8;
	--vl-blue-soft: #eef4ff;
	--vl-gold: #c9982f;
	--vl-gold-soft: #fbf3df;
	--vl-gold-ink: #3b2a05;
	--vl-text: #1b2435;
	--vl-muted: #5b677a;
	--vl-line: #dfe6f0;
	--vl-line-2: #eef2f7;
	--vl-bg: #f6f8fc;
	--vl-card: #ffffff;
	--vl-radius: 10px;
	--vl-shadow: 0 1px 2px rgba(15, 47, 99, .04), 0 6px 18px rgba(15, 47, 99, .06);
	--vdt-legal-sticky: 88px;
	--vdt-legal-fs: 17px;
	color: var(--vl-text);
	background: var(--vl-bg);
	font-family: var(--vdt-font-main, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	padding-bottom: 48px;
}
.vdt-legal *, .vdt-legal *::before, .vdt-legal *::after { box-sizing: border-box; }
.vdt-legal a { color: var(--vl-blue); }
.vdt-legal a:hover { color: var(--vl-navy); }
.vdt-legal :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
.vdt-legal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.vdt-legal-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.vdt-legal-ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- Buttons ---------- */
.vdt-legal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.vdt-legal-btn--gold { background: #e2b650; color: var(--vl-gold-ink); border-color: #d3a43c; }
.vdt-legal-btn--gold:hover { background: #d9a73a; color: #1f1500; }
.vdt-legal-btn--navy { background: var(--vl-navy); color: #fff; }
.vdt-legal-btn--navy:hover { background: var(--vl-navy-2); color: #fff; }
.vdt-legal-btn--outline { background: #fff; color: var(--vl-navy); border-color: #b9c8e2; }
.vdt-legal-btn--outline:hover { border-color: var(--vl-blue); color: var(--vl-blue); }
.vdt-legal-btn--ghost { background: transparent; color: var(--vl-navy); border-color: transparent; }
.vdt-legal-btn--ghost:hover { background: var(--vl-blue-soft); }
.vdt-legal-btn--dl { background: #fff; }
.vdt-legal-btn--docx { color: #1d4ed8; border-color: #b6c9f5; }
.vdt-legal-btn--pdf { color: #b42318; border-color: #f5c2bd; }
.vdt-legal-btn--dl:hover { background: #fafbff; }

/* ---------- Badges & validity ---------- */
.vdt-legal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 30px; padding: 4px 12px; border-radius: 6px; background: #334155; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.vdt-legal-badge--thong-tu, .vdt-legal-badge--thong-tu-lien-tich { background: #2459c6; }
.vdt-legal-badge--nghi-dinh { background: #8a5a0f; }
.vdt-legal-badge--quyet-dinh { background: #6d28d9; }
.vdt-legal-badge--luat, .vdt-legal-badge--bo-luat { background: var(--vl-navy); }
.vdt-legal-badge--nghi-quyet { background: #0f766e; }
.vdt-legal-badge--van-ban-hop-nhat { background: #475467; }
.vdt-legal-badge--chi-thi, .vdt-legal-badge--cong-van, .vdt-legal-badge--phap-lenh { background: #5b21b6; }
.vdt-legal-validity { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid #d0d5dd; background: #f2f4f7; color: #344054; font-size: 13px; font-weight: 600; line-height: 1.3; }
.vdt-legal-validity--effective { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.vdt-legal-validity--expired { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.vdt-legal-validity--partially_expired, .vdt-legal-validity--suspended { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.vdt-legal-validity--not_yet_effective { border-color: #b2ccff; background: #eff4ff; color: #1d4ed8; }
.vdt-legal-validity .vdt-legal-ico { width: 15px; height: 15px; }
.vdt-legal-asof { display: block; margin-top: 4px; color: var(--vl-muted); font-size: 12px; }

/* ---------- Hero (danh sách) ---------- */
.vdt-legal-hero { position: relative; overflow: hidden; padding: 34px 0 26px; background:
	radial-gradient(circle at 12% 20%, rgba(29, 78, 216, .07) 0, transparent 38%),
	radial-gradient(circle at 88% 10%, rgba(201, 152, 47, .10) 0, transparent 34%),
	linear-gradient(180deg, #f3f7fd 0%, #e9f0fa 100%);
	border-bottom: 1px solid var(--vl-line); }
.vdt-legal-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 3px; margin-left: -60px; background: var(--vl-gold); border-radius: 2px; opacity: .8; }
.vdt-legal-hero__inner { text-align: center; }
.vdt-legal-hero__title { margin: 0 0 8px; color: var(--vl-navy); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.vdt-legal-hero__sub { max-width: 760px; margin: 0 auto 20px; color: #3b4a61; font-size: 17px; line-height: 1.5; }
.vdt-legal-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 820px; margin: 0 auto; padding: 6px; background: #fff; border: 1px solid #cfdaea; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 47, 99, .08); }
.vdt-legal-search__icon { display: inline-flex; padding-left: 10px; color: var(--vl-muted); }
.vdt-legal-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--vl-text); font: inherit; font-size: 16px; outline: none; box-shadow: none; }
.vdt-legal-search input[type="search"]:focus-visible { outline: none; }
.vdt-legal-search:focus-within { border-color: var(--vl-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15), 0 8px 24px rgba(15, 47, 99, .08); }
.vdt-legal-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 16px; }
.vdt-legal-chips__label { color: var(--vl-navy); font-size: 14px; font-weight: 600; }
.vdt-legal-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #cfdaea; border-radius: 999px; background: #fff; color: var(--vl-navy) !important; font-size: 14px; text-decoration: none; }
.vdt-legal-chip:hover, .vdt-legal-chip.is-active { border-color: var(--vl-blue); background: var(--vl-blue-soft); color: var(--vl-blue) !important; }
.vdt-legal-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: var(--vl-muted); }
.vdt-legal-breadcrumb li { display: inline-flex; align-items: center; }
.vdt-legal-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #98a2b3; }
.vdt-legal-breadcrumb a { color: var(--vl-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.vdt-legal-breadcrumb a:hover { color: var(--vl-blue); }
.vdt-legal-breadcrumb [aria-current] { color: var(--vl-navy); font-weight: 600; }
.vdt-legal-hero .vdt-legal-breadcrumb ol { justify-content: center; }

/* ---------- Layout danh sách ---------- */
.vdt-legal-library__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
@media (min-width: 1100px) { .vdt-legal-library__grid { grid-template-columns: minmax(0, 1fr) 310px; } }
.vdt-legal-library__main, .vdt-legal-library__side { min-width: 0; }
.vdt-legal-library__side { display: flex; flex-direction: column; gap: 18px; }

.vdt-legal-filters { background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); }
.vdt-legal-filters__toggle { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; color: var(--vl-navy); font-weight: 600; cursor: pointer; list-style: none; }
.vdt-legal-filters__toggle::-webkit-details-marker { display: none; }
.vdt-legal-filters__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 4px 16px 16px; align-items: end; }
.vdt-legal-field label { display: block; margin-bottom: 6px; color: #344054; font-size: 14px; font-weight: 600; }
.vdt-legal-field select, .vdt-legal-sort select, .vdt-legal-perpage select { width: 100%; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; color: var(--vl-text); font: inherit; font-size: 14px; }
.vdt-legal-filters__actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.vdt-legal-filters__actions .vdt-legal-btn { padding: 0 12px; }
@media (min-width: 900px) {
	.vdt-legal-filters__toggle { display: none; }
	.vdt-legal-filters__form { padding-top: 16px; }
}

.vdt-legal-results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 18px 0 10px; }
.vdt-legal-results__count { margin: 0; color: #344054; font-size: 15px; }
.vdt-legal-sort, .vdt-legal-perpage { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #344054; }
.vdt-legal-sort select, .vdt-legal-perpage select { width: auto; min-width: 180px; }
.vdt-legal-notice { padding: 12px 14px; border-radius: 8px; background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }

.vdt-legal-list { margin: 0; padding: 0; list-style: none; background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); }
.vdt-legal-item { display: grid; grid-template-columns: 116px minmax(0, 1fr) 250px; gap: 16px 22px; padding: 20px 22px; border-bottom: 1px solid var(--vl-line-2); }
.vdt-legal-item:last-child { border-bottom: 0; }
.vdt-legal-item__title { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.vdt-legal-item__title a { color: var(--vl-navy); text-decoration: none; }
.vdt-legal-item__title a:hover { color: var(--vl-blue); text-decoration: underline; }
.vdt-legal-item__excerpt { margin: 0 0 8px; color: #24407a; font-size: 15px; font-weight: 600; line-height: 1.5; }
.vdt-legal-item__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--vl-muted); font-size: 14px; }
.vdt-legal-item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vdt-legal-item__meta strong { color: #344054; font-weight: 600; }
.vdt-legal-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.vdt-legal-item__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 200px; }
.vdt-legal-item__actions .vdt-legal-btn { width: 100%; }
@media (max-width: 899px) {
	.vdt-legal-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
	.vdt-legal-item__side { align-items: flex-start; text-align: left; }
	.vdt-legal-item__actions { flex-direction: row; flex-wrap: wrap; max-width: none; }
	.vdt-legal-item__actions .vdt-legal-btn { width: auto; flex: 1 1 140px; }
	.vdt-legal-badge { min-width: 0; }
}
.vdt-legal-results__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.vdt-legal-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vdt-legal-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--vl-line); border-radius: 8px; background: #fff; color: var(--vl-navy); text-decoration: none; font-weight: 600; }
.vdt-legal-pagination .page-numbers.current { background: var(--vl-navy); border-color: var(--vl-navy); color: #fff; }
.vdt-legal-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.vdt-legal-empty { padding: 40px 24px; text-align: center; background: #fff; border: 1px dashed #c9d4e5; border-radius: var(--vl-radius); }
.vdt-legal-empty .vdt-legal-ico { width: 40px; height: 40px; color: #98a2b3; }
.vdt-legal-empty h2 { margin: 10px 0 6px; color: var(--vl-navy); font-size: 20px; }

/* ---------- Cards / sidebar ---------- */
.vdt-legal-card { padding: 18px; background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); }
.vdt-legal-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vdt-legal-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--vl-navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.vdt-legal-card__title .vdt-legal-ico { color: var(--vl-gold); width: 20px; height: 20px; }
.vdt-legal-card__more { font-size: 13px; white-space: nowrap; }
.vdt-legal-topiclist, .vdt-legal-mini, .vdt-legal-files, .vdt-legal-rel, .vdt-legal-courses__list { margin: 0; padding: 0; list-style: none; }
.vdt-legal-topiclist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 4px; border-bottom: 1px solid var(--vl-line-2); color: #24324a; text-decoration: none; font-size: 15px; }
.vdt-legal-topiclist li:last-child a { border-bottom: 0; }
.vdt-legal-topiclist a:hover { color: var(--vl-blue); }
.vdt-legal-count { min-width: 30px; padding: 2px 8px; border-radius: 999px; background: #f0f3f8; color: #475467; font-size: 13px; text-align: center; }
.vdt-legal-mini li { position: relative; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--vl-line-2); }
.vdt-legal-mini li:last-child { border-bottom: 0; }
.vdt-legal-mini li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--vl-blue); opacity: .6; }
.vdt-legal-mini a { display: block; color: var(--vl-navy); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; }
.vdt-legal-mini a:hover { color: var(--vl-blue); text-decoration: underline; }
.vdt-legal-mini__desc { display: block; color: var(--vl-muted); font-size: 13px; line-height: 1.45; }
.vdt-legal-mini__date { display: block; margin-top: 2px; color: #667085; font-size: 12px; }
.vdt-legal-courses { background: linear-gradient(180deg, #fffdf7 0%, #fff 60%); border-color: #eedfb8; }
.vdt-legal-courses__lead { margin: -4px 0 10px; color: #475467; font-size: 14px; line-height: 1.5; }
.vdt-legal-courses__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid #f1ead7; color: var(--vl-navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.vdt-legal-courses__list a:hover { color: var(--vl-blue); }
.vdt-legal-courses__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
.vdt-legal-courses__hotline { display: inline-flex; align-items: center; gap: 6px; color: var(--vl-navy) !important; font-weight: 600; text-decoration: none; min-height: 40px; }

/* ---------- Trang đọc ---------- */
.vdt-legal-band { padding: 14px 0 12px; background: linear-gradient(180deg, #f3f7fd 0%, #e9f0fa 100%); border-bottom: 1px solid var(--vl-line); }
.vdt-legal-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.vdt-legal-band .vdt-legal-breadcrumb ol { margin: 0; }
.vdt-legal-band__label { margin: 0; color: var(--vl-navy); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.vdt-legal-demo { margin: 16px 0 0; padding: 10px 14px; border: 2px dashed #f79009; border-radius: 8px; background: #fffaeb; color: #93370d; }
.vdt-legal-doc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin: 22px 0 16px; }
.vdt-legal-doc-head__text { flex: 1 1 520px; min-width: 0; }
.vdt-legal-doc-head__title { margin: 10px 0 6px; color: var(--vl-navy); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.25; }
.vdt-legal-doc-head__excerpt { margin: 0; color: #24407a; font-size: 18px; line-height: 1.5; }
.vdt-legal-doc-head__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.vdt-legal-metastrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 18px; padding: 0; background: #fff; border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); }
.vdt-legal-metastrip > div { padding: 14px 16px; border-right: 1px solid var(--vl-line-2); min-width: 0; }
.vdt-legal-metastrip > div:last-child { border-right: 0; }
.vdt-legal-metastrip dt { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--vl-muted); font-size: 13px; }
.vdt-legal-metastrip dt .vdt-legal-ico { color: var(--vl-blue); width: 16px; height: 16px; }
.vdt-legal-metastrip dd { margin: 0; color: var(--vl-navy); font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.vdt-legal-more { font-weight: 400; font-size: 13px; }

.vdt-legal-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--vl-line); overflow-x: auto; scrollbar-width: thin; }
.vdt-legal-tabs [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #475467; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.vdt-legal-tabs [role="tab"][aria-selected="true"] { color: var(--vl-navy); border-bottom-color: var(--vl-gold); }
.vdt-legal-tabs [role="tab"]:hover { color: var(--vl-blue); }

.vdt-legal-reader__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.vdt-legal-reader__grid > * { min-width: 0; }
@media (min-width: 1024px) {
	.vdt-legal-reader__grid { grid-template-columns: 250px minmax(0, 1fr); }
	.vdt-legal-reader__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
}
@media (min-width: 1280px) {
	.vdt-legal-reader__grid { grid-template-columns: 250px minmax(620px, 1fr) 290px; }
	.vdt-legal-reader__side { grid-column: auto; display: flex; flex-direction: column; gap: 18px; }
	.vdt-legal-reader__grid:not(:has(.vdt-legal-toc)) { grid-template-columns: minmax(620px, 1fr) 290px; }
}
.vdt-legal-reader__side { display: flex; flex-direction: column; gap: 18px; }
.vdt-legal-reader.is-focus .vdt-legal-reader__side, .vdt-legal-reader.is-focus .vdt-legal-band, .vdt-legal-reader.is-focus .vdt-legal-metastrip { display: none; }
@media (min-width: 1024px) {
	.vdt-legal-reader.is-focus .vdt-legal-reader__grid { grid-template-columns: 250px minmax(0, 1fr); }
}

/* TOC */
.vdt-legal-toc { background: #fff; border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); }
@media (min-width: 1024px) {
	.vdt-legal-toc { position: sticky; top: calc(var(--vdt-legal-sticky) + 12px); display: flex; flex-direction: column; max-height: calc(100vh - var(--vdt-legal-sticky) - 24px); }
}
.vdt-legal-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--vl-line-2); }
.vdt-legal-toc__title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--vl-navy); font-size: 17px; font-weight: 700; }
.vdt-legal-toc__title .vdt-legal-ico { color: var(--vl-gold); }
.vdt-legal-toc__close { display: none; border: 0; background: transparent; color: var(--vl-navy); min-width: 44px; min-height: 44px; cursor: pointer; }
.vdt-legal-toc__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 8px 6px 12px; }
.vdt-legal-toc__list, .vdt-legal-toc__sub { margin: 0; padding: 0; list-style: none; }
.vdt-legal-toc__row { display: flex; align-items: flex-start; gap: 2px; }
.vdt-legal-toc__toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 34px; border: 0; background: transparent; color: #667085; cursor: pointer; }
.vdt-legal-toc__toggle .vdt-legal-ico { width: 14px; height: 14px; transition: transform .15s; transform: rotate(90deg); }
.vdt-legal-toc__toggle[aria-expanded="false"] .vdt-legal-ico { transform: rotate(0); }
.vdt-legal-toc__link { display: block; flex: 1 1 auto; padding: 7px 8px; border-radius: 6px; color: #2d3a52; font-size: 14px; line-height: 1.4; text-decoration: none; border-left: 3px solid transparent; }
.vdt-legal-toc__link--top { color: var(--vl-navy); font-weight: 600; }
.vdt-legal-toc__link:hover { background: var(--vl-blue-soft); color: var(--vl-blue); }
.vdt-legal-toc__link.is-current { background: var(--vl-blue-soft); border-left-color: var(--vl-blue); color: var(--vl-navy); font-weight: 600; }
.vdt-legal-toc__sub { padding-left: 22px; }
.vdt-legal-toc__sub[hidden] { display: none; }
.vdt-legal-toc__item--l2 { padding-left: 12px; }
.vdt-legal-toc__item--l3, .vdt-legal-toc__item--l4 { padding-left: 24px; }
.vdt-legal-toc__item .vdt-legal-toc__link { font-size: 13.5px; }

/* Toolbar */
.vdt-legal-panel { background: #fff; border: 1px solid var(--vl-line); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow); padding: 18px 26px 26px; margin-bottom: 18px; }
.vdt-legal-panel[hidden] { display: none; }
.vdt-legal-panel__title { margin: 0 0 12px; color: var(--vl-navy); font-size: 20px; font-weight: 700; }
.vdt-legal-panel__sub { margin: 18px 0 4px; color: var(--vl-navy); font-size: 17px; }
.vdt-legal-toolbar { position: sticky; top: var(--vdt-legal-sticky); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -18px -26px 12px; padding: 12px 26px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--vl-line-2); border-radius: var(--vl-radius) var(--vl-radius) 0 0; }
.vdt-legal-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 42px; padding: 0 10px; border: 1px solid #d5deeb; border-radius: 8px; background: #fff; color: var(--vl-navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.vdt-legal-tool:hover { border-color: var(--vl-blue); color: var(--vl-blue); }
.vdt-legal-tool[aria-pressed="true"] { background: var(--vl-navy); border-color: var(--vl-navy); color: #fff; }
.vdt-legal-tool--toc { display: none; }
.vdt-legal-find { display: flex; flex: 1 1 280px; align-items: center; gap: 6px; min-width: 0; padding: 0 6px 0 10px; border: 1px solid #d5deeb; border-radius: 8px; background: #fff; }
.vdt-legal-find[hidden], .vdt-legal-fontsize[hidden], .vdt-legal-tool[hidden] { display: none; }
.vdt-legal-find:focus-within { border-color: var(--vl-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.vdt-legal-find input { flex: 1 1 auto; min-width: 60px; height: 40px; border: 0; background: transparent; font: inherit; font-size: 15px; outline: none; }
.vdt-legal-find .vdt-legal-tool { min-width: 36px; min-height: 36px; border: 0; }
.vdt-legal-find__count { color: var(--vl-muted); font-size: 13px; white-space: nowrap; }
.vdt-legal-fontsize { display: inline-flex; border: 1px solid #d5deeb; border-radius: 8px; overflow: hidden; }
.vdt-legal-fontsize .vdt-legal-tool { border: 0; border-radius: 0; border-left: 1px solid #e4e9f2; }
.vdt-legal-fontsize .vdt-legal-tool:first-child { border-left: 0; }
.vdt-legal-refnote { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--vl-gold); background: var(--vl-gold-soft); color: #5a4515; font-size: 14px; line-height: 1.5; border-radius: 0 6px 6px 0; }

/* Nội dung văn bản */
.vdt-legal-content { font-size: var(--vdt-legal-fs); line-height: 1.78; color: #141c2b; overflow-wrap: break-word; }
.vdt-legal-content [id] { scroll-margin-top: calc(var(--vdt-legal-sticky) + 72px); }
.vdt-legal-content p { margin: 0 0 .7em; text-align: left; }
.vdt-legal-content .vdt-legal-center { text-align: center; }
.vdt-legal-content .vdt-legal-right { text-align: right; }
.vdt-legal-content .vdt-legal-h { position: relative; color: var(--vl-navy); line-height: 1.45; }
.vdt-legal-content .vdt-legal-hline { display: block; }
.vdt-legal-content h2.vdt-legal-h { margin: 1.6em 0 .8em; font-size: 1.12em; font-weight: 700; text-align: center; }
.vdt-legal-content h2.vdt-legal-h .vdt-legal-htitle { margin-top: 2px; }
.vdt-legal-content h3.vdt-legal-h, .vdt-legal-content h4.vdt-legal-h { margin: 1.3em 0 .5em; font-size: 1.04em; font-weight: 700; }
.vdt-legal-content .vdt-legal-muc, .vdt-legal-content .vdt-legal-tieu-muc { text-align: center; }
.vdt-legal-content .vdt-legal-num { font-weight: inherit; }
.vdt-legal-content .vdt-legal-quoted { padding-left: 14px; border-left: 3px solid #e5d3a6; }
.vdt-legal-content .vdt-legal-qh { font-weight: 700; }
.vdt-legal-content .vdt-legal-caps { text-transform: uppercase; }
.vdt-legal-content .vdt-legal-textbox { padding: 8px 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; }
.vdt-legal-content .vdt-legal-missing { display: inline-block; padding: 2px 8px; background: #fef3f2; color: #b42318; border-radius: 4px; font-size: .88em; }
.vdt-legal-content sup, .vdt-legal-content sub { font-size: .72em; line-height: 0; }
.vdt-legal-content .vdt-legal-math { white-space: normal; }
.vdt-legal-content img.vdt-legal-img { max-width: 100%; height: auto; }
.vdt-legal-table-wrap { position: relative; max-width: 100%; margin: 1em 0 1.2em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--vl-line); border-radius: 8px; }
.vdt-legal-table-wrap:has(.vdt-legal-table-plain) { border: 0; }
.vdt-legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92em; line-height: 1.55; }
.vdt-legal-table th, .vdt-legal-table td { padding: 8px 10px; border: 1px solid #d9e1ec; vertical-align: top; text-align: left; }
.vdt-legal-table th { background: #f3f6fb; color: var(--vl-navy); font-weight: 600; }
.vdt-legal-table p { margin: 0 0 .35em; }
.vdt-legal-table p:last-child { margin-bottom: 0; }
.vdt-legal-table-plain { min-width: 0; }
.vdt-legal-table-plain th, .vdt-legal-table-plain td { border: 0; padding: 4px 8px; }
.vdt-legal-zone-preamble.vdt-legal-p, .vdt-legal-content .vdt-legal-table-plain td { text-align: center; }
.vdt-legal-content .vdt-legal-zone-preamble:not(.vdt-legal-center) { text-align: left; }
.vdt-legal-content .vdt-legal-zone-signature { font-size: .94em; }
.vdt-legal-footnotes { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--vl-line); font-size: .9em; }
.vdt-legal-notes-title { font-weight: 700; color: var(--vl-navy); }
.vdt-legal-footnotes li { margin-bottom: .5em; }
.vdt-legal-fnref a { text-decoration: none; font-weight: 600; }
.vdt-legal-fnback { text-decoration: none; }
.vdt-legal-anchor { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #98a2b3; cursor: pointer; opacity: 0; transition: opacity .15s; }
.vdt-legal-h:hover .vdt-legal-anchor, .vdt-legal-anchor:focus-visible, .vdt-legal-anchor.is-done { opacity: 1; }
.vdt-legal-anchor:hover { color: var(--vl-blue); background: var(--vl-blue-soft); }
.vdt-legal-anchor.is-done { color: #067647; }
@media (hover: none) { .vdt-legal-anchor { opacity: .7; } }
h3.vdt-legal-h, h4.vdt-legal-h { padding-right: 38px; }
mark.vdt-legal-hit { background: #fde68a; color: inherit; padding: 0; border-radius: 2px; }
mark.vdt-legal-hit.is-current { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.vdt-legal-toast { position: fixed; left: 50%; bottom: 96px; z-index: 100002; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: var(--vl-navy-2); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.vdt-legal-info { width: 100%; border-collapse: collapse; font-size: 14px; }
.vdt-legal-info th, .vdt-legal-info td { padding: 9px 4px; border-bottom: 1px solid var(--vl-line-2); vertical-align: top; text-align: left; }
.vdt-legal-info th { width: 42%; color: var(--vl-muted); font-weight: 400; }
.vdt-legal-info td { color: var(--vl-navy); font-weight: 600; overflow-wrap: anywhere; }
.vdt-legal-info tr:last-child th, .vdt-legal-info tr:last-child td { border-bottom: 0; }
.vdt-legal-callout { margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--vl-line); font-size: 15px; line-height: 1.6; }
.vdt-legal-muted { color: var(--vl-muted); font-size: 14px; }
.vdt-legal-small { font-size: 13px; margin: 0 0 6px; }
.vdt-legal-files a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.vdt-legal-forms { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vl-line-2); }
.vdt-legal .vdt-legal-forms__title { margin: 0 0 6px; color: var(--vl-navy); font-size: 18px; font-weight: 700; }
.vdt-legal .vdt-legal-forms__group { margin: 16px 0 4px; color: #344054; font-size: 15px; font-weight: 600; }
.vdt-legal-forms__list li { border-bottom: 1px solid var(--vl-line-2); }
.vdt-legal-forms__list li:last-child { border-bottom: 0; }
.vdt-legal-forms__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 6px 0; color: var(--vl-blue); text-decoration: none; overflow-wrap: anywhere; }
.vdt-legal-forms__list a > svg { flex-shrink: 0; }
.vdt-legal-forms__list a:hover span:first-of-type { text-decoration: underline; }
.vdt-legal-forms__meta { color: var(--vl-muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
	.vdt-legal-forms__list a { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; }
	.vdt-legal-forms__meta { grid-column: 2; }
}
.vdt-legal-rel li { padding: 10px 0; border-bottom: 1px solid var(--vl-line-2); }
.vdt-legal-rel__type { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--vl-blue-soft); color: var(--vl-navy); font-size: 13px; font-weight: 600; }
.vdt-legal-rel__scope { display: block; color: var(--vl-muted); font-size: 13px; }
.vdt-legal-printref { display: none; }
/* Ngăn kéo mục lục là hộp thoại: nằm trên thanh liên hệ nổi (.bcnt-dock, z-index 99999) chỉ khi đang mở. */
.vdt-legal-toc-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(11, 31, 58, .45); }
.vdt-legal-toc-backdrop[hidden] { display: none; }

/* Mobile/tablet: mục lục là ngăn kéo */
@media (max-width: 1023px) {
	.vdt-legal-wrap { padding: 0 16px; }
	.vdt-legal { --vdt-legal-fs: 16px; padding-bottom: 104px; }
	.vdt-legal-tool--toc { display: inline-flex; }
	.vdt-legal-toc { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100001; width: min(360px, 88vw); max-height: none; border-radius: 0 12px 12px 0; transform: translateX(-105%); transition: transform .2s ease; display: flex; flex-direction: column; visibility: hidden; }
	.vdt-legal-toc.is-open { transform: none; visibility: visible; }
	.vdt-legal-toc__close { display: inline-flex; align-items: center; justify-content: center; }
	.vdt-legal-panel { padding: 14px 16px 20px; }
	.vdt-legal-toolbar { margin: -14px -16px 12px; padding: 10px 16px; }
	.vdt-legal-metastrip > div { border-right: 0; border-bottom: 1px solid var(--vl-line-2); }
	.vdt-legal-doc-head__excerpt { font-size: 16px; }
}
@media (max-width: 599px) {
	.vdt-legal-hero { padding: 22px 0 18px; }
	.vdt-legal-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
	.vdt-legal-chip { flex: 0 0 auto; }
	.vdt-legal-hero__sub { font-size: 15px; }
	.vdt-legal-search { flex-wrap: wrap; }
	.vdt-legal-search button { width: 100%; }
	.vdt-legal-search__icon { display: none; }
	.vdt-legal-sort select, .vdt-legal-perpage select { min-width: 0; }
	.vdt-legal-doc-head__tools .vdt-legal-btn { flex: 1 1 auto; }
	.vdt-legal-metastrip { grid-template-columns: 1fr 1fr; }
	.vdt-legal-band__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.vdt-legal *, .vdt-legal *::before, .vdt-legal *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- In ---------- */
@media print {
	body.vdt-legal-body { background: #fff !important; }
	body.vdt-legal-body header, body.vdt-legal-body footer, body.vdt-legal-body .vdt-site-header, body.vdt-legal-body .vdt-footer,
	body.vdt-legal-body #bcnt-wrap, body.vdt-legal-body .bcnt-dock, body.vdt-legal-body #wpadminbar,
	.vdt-legal-band, .vdt-legal-toc, .vdt-legal-reader__side, .vdt-legal-toolbar, .vdt-legal-tabs, .vdt-legal-doc-head__tools,
	.vdt-legal-anchor, .vdt-legal-toc-backdrop, .vdt-legal-refnote, .vdt-legal-hero, .vdt-legal-library__side, .vdt-legal-courses,
	#vb-tep-nguon, #vb-lien-quan { display: none !important; }
	.vdt-legal { background: #fff; color: #000; padding: 0; }
	.vdt-legal-wrap { max-width: none; padding: 0; }
	.vdt-legal-reader__grid { display: block; }
	.vdt-legal-panel { border: 0; box-shadow: none; padding: 0; margin: 0 0 12pt; }
	.vdt-legal-panel[hidden] { display: block !important; }
	#vb-thong-tin { break-before: page; }
	.vdt-legal-metastrip { border: 1px solid #999; box-shadow: none; }
	.vdt-legal-content { font-size: 12.5pt; line-height: 1.5; color: #000; }
	.vdt-legal-content .vdt-legal-h { color: #000; break-after: avoid; }
	.vdt-legal-table-wrap { overflow: visible; border: 0; }
	.vdt-legal-table { min-width: 0; font-size: 10.5pt; }
	.vdt-legal-table thead { display: table-header-group; }
	.vdt-legal-table tr { break-inside: avoid; }
	.vdt-legal-table th, .vdt-legal-table td { border-color: #555; }
	mark.vdt-legal-hit { background: none; box-shadow: none; }
	a { color: #000 !important; text-decoration: none !important; }
	.vdt-legal-printref { display: block; margin-top: 16pt; padding-top: 6pt; border-top: 1px solid #999; font-size: 9pt; color: #333; }
	.vdt-legal-doc-head__title { color: #000; }
}

/* ---------- Tiêu đề: thắng quy tắc body.vdt-page hN của theme, không đổi font toàn site ---------- */
.vdt-legal h1.vdt-legal-hero__title { margin: 0 0 8px; color: var(--vl-navy); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: .01em; }
.vdt-legal h1.vdt-legal-doc-head__title { margin: 10px 0 6px; color: var(--vl-navy); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: 0; }
.vdt-legal h2.vdt-legal-item__title { margin: 0 0 4px; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.vdt-legal h2.vdt-legal-card__title { margin: 0 0 12px; color: var(--vl-navy); font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.vdt-legal h2.vdt-legal-toc__title { margin: 0; color: var(--vl-navy); font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.vdt-legal h2.vdt-legal-panel__title { margin: 0 0 12px; color: var(--vl-navy); font-size: 20px; line-height: 1.3; letter-spacing: 0; }
.vdt-legal h3.vdt-legal-panel__sub { margin: 18px 0 4px; color: var(--vl-navy); font-size: 17px; }
.vdt-legal .vdt-legal-empty h2 { margin: 10px 0 6px; color: var(--vl-navy); font-size: 20px; }
@media (max-width: 599px) {
	.vdt-legal h2.vdt-legal-item__title { font-size: 17px; }
}

/* ---------- Tinh chỉnh ---------- */
.vdt-legal .vdt-legal-find input:focus-visible { outline: none; }
.vdt-legal-chips__label { white-space: nowrap; flex: 0 0 auto; }
.vdt-legal-card__head .vdt-legal-card__title { flex: 1 1 auto; min-width: 0; }
