/* WiWeb Trang Chính Sách v1.0.0 — màu lấy theo màu chữ của theme (currentColor), không đặt mã màu cố định. */

/* ---------- Liên kết footer ---------- */
.wi-legal-footer-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 12px; margin: 16px 0 0; padding: 14px 0 0;
  border-top: 1px solid rgba(127, 127, 127, .25);
  border-top-color: color-mix(in srgb, currentColor 18%, transparent);
  font-size: 12px; line-height: 1.6;
}
.wi-legal-footer-links.is-left { justify-content: flex-start; }
.wi-legal-footer-links.is-right { justify-content: flex-end; }
.wi-legal-footer-links a { color: inherit !important; opacity: .8; text-decoration: none; font-weight: 600; }
.wi-legal-footer-links a:hover, .wi-legal-footer-links a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.wi-legal-footer-links__sep { opacity: .4; }

/* ---------- Nội dung 4 trang ---------- */
.wi-legal { max-width: 880px; margin: 0 auto; line-height: 1.75; }
.wi-legal h2 { margin: 2em 0 .6em; font-size: 1.3em; line-height: 1.35; scroll-margin-top: 110px; }
.wi-legal h3 { margin: 1.4em 0 .5em; font-size: 1.08em; line-height: 1.4; scroll-margin-top: 110px; }
.wi-legal p, .wi-legal ul, .wi-legal ol { margin-bottom: 1em; }
.wi-legal ul, .wi-legal ol { padding-left: 1.4em; }
.wi-legal li { margin-bottom: .35em; }
.wi-legal li > ul, .wi-legal li > ol { margin: .35em 0 .2em; }
.wi-legal-meta { opacity: .72; font-size: .92em; }
.wi-legal-lead { font-size: 1.06em; }

.wi-legal-toc, .wi-legal-box {
  margin: 1.4em 0; padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, .25);
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  background: rgba(127, 127, 127, .05);
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.wi-legal .wi-legal-box__title { margin: 0 0 6px; }
.wi-legal-toc ol { margin: 0; columns: 2 260px; column-gap: 28px; }
.wi-legal-toc li { break-inside: avoid; }
.wi-legal-box > :last-child { margin-bottom: 0; }
.wi-legal-box.is-warning { border-left-width: 4px; }

.wi-legal-table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }
.wi-legal table { width: 100%; border-collapse: collapse; font-size: .95em; }
.wi-legal th, .wi-legal td {
  padding: 9px 12px; text-align: left; vertical-align: top;
  border: 1px solid rgba(127, 127, 127, .25);
  border-color: color-mix(in srgb, currentColor 15%, transparent);
}
.wi-legal th { background: color-mix(in srgb, currentColor 5%, transparent); }

.wi-legal-related { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid rgba(127, 127, 127, .25); border-top-color: color-mix(in srgb, currentColor 15%, transparent); }
.wi-legal-related ul { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; }
.wi-legal-related li { margin: 0; }

@media (max-width: 549px) {
  .wi-legal h2 { font-size: 1.18em; }
  .wi-legal-toc, .wi-legal-box { padding: 14px 16px; }
}
