/**
 * page-privacy.css — Trang "นโยบายความเป็นส่วนตัว"
 *
 * Trước đây trang này là một card Bootstrap thuần với style inline: lạc hẳn
 * ngôn ngữ "สมุดองค์กร" của about/districts (nền giấy, đường kẻ tóc, vàng son).
 * File này đưa trang về cùng hệ thống mà không phụ thuộc page-about-craft.css.
 *
 * Quy ước: ZERO !important. Mọi ghi đè đi bằng specificity + thứ tự cascade.
 * Chữ Thái: letter-spacing: 0 (dấu thanh không bị tách khỏi phụ âm).
 */

.priv-page {
  --priv-ink: var(--church-navy-primary, #1a2258);
  --priv-body: var(--church-text-body, #334155);
  --priv-muted: #5b6878;
  --priv-hair: #e7e3da;
  --priv-paper: #fbf8f2;
  --priv-gold: var(--church-gold-dark, #b45309);
  --priv-pink: #ff37ff;

  background: var(--church-canvas, #f8fafc);
  padding: 34px 0 72px;
  color: var(--priv-body);
}

.priv-sheet {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 56px);
  background: #ffffff;
  border: 1px solid var(--priv-hair);
  box-shadow: 0 18px 48px rgba(20, 26, 62, 0.07);
  color: var(--priv-body);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0;
}

/* Gạch nhấn magenta — màu thương hiệu chính thức, cùng nhịp với .abt-masthead */
.priv-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--priv-pink);
  opacity: 0.85;
}

.priv-sheet > :first-child {
  margin-top: 0;
}

/* Nội dung do admin soạn trong DB dùng class Bootstrap (.text-primary,
   .text-muted) và thẻ h3/h5 — phải trung hoà về đúng bảng màu của trang. */
.priv-sheet .text-primary {
  color: var(--priv-ink);
}

.priv-sheet .text-muted {
  color: var(--priv-muted);
}

/* Tiêu đề tài liệu: khối đầu tiên của nội dung (thường là h3.text-primary) */
.priv-sheet .privacy-policy-content > :first-child {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--priv-ink);
  border-bottom: 0;
  padding-bottom: 0;
}

/* Dòng "ปรับปรุงล่าสุด" ngay dưới tiêu đề tài liệu */
.priv-sheet .privacy-policy-content > :first-child + p {
  margin-bottom: 26px;
  font-size: 0.86rem;
  color: var(--priv-muted);
}

/* Mục lớn — admin đang dùng <h5>, nhưng vẫn phủ h2..h6 để nội dung sau này
   đổi thẻ vẫn giữ nguyên nhịp. */
.priv-sheet h2,
.priv-sheet h3,
.priv-sheet h4,
.priv-sheet h5,
.priv-sheet h6 {
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--priv-hair);
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--priv-ink);
  letter-spacing: 0;
}

.priv-sheet p {
  margin: 0 0 14px;
}

.priv-sheet ul,
.priv-sheet ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.priv-sheet li {
  margin-bottom: 7px;
}

.priv-sheet li::marker {
  color: var(--priv-gold);
}

.priv-sheet a {
  color: var(--priv-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.priv-sheet a:hover {
  color: var(--priv-ink);
}

.priv-sheet strong,
.priv-sheet b {
  color: var(--priv-ink);
  font-weight: 600;
}

.priv-sheet hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--priv-hair);
}

.priv-sheet img {
  max-width: 100%;
  height: auto;
}

.priv-sheet blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--priv-gold);
  background: var(--priv-paper);
  color: var(--priv-muted);
}

.priv-sheet table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.priv-sheet th,
.priv-sheet td {
  padding: 8px 10px;
  border: 1px solid var(--priv-hair);
  text-align: left;
  vertical-align: top;
}

.priv-sheet th {
  background: var(--priv-paper);
  color: var(--priv-ink);
  font-weight: 600;
}

/* Trạng thái chưa có nội dung */
.priv-empty {
  padding: 44px 0;
  text-align: center;
  color: var(--priv-muted);
}

.priv-empty i {
  display: block;
  margin-bottom: 12px;
  font-size: 2.6rem;
  color: var(--priv-hair);
}

/* Dòng ghi chú cập nhật ở chân trang */
.priv-foot-note {
  max-width: 880px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--priv-muted);
}

@media (max-width: 575.98px) {
  .priv-sheet {
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .priv-sheet h2 {
    margin-top: 28px;
  }
}
