/* Dùng chung cho 3 trang pháp lý (privacy / terms / xoa-tai-khoan).
   File tĩnh, không qua build — Firebase Hosting phục vụ file có thật trước khi áp
   rewrite SPA, nên /privacy.html tới thẳng đây (giống /checkin.html đã chạy).

   Màu lấy đúng token thương hiệu trong active-fox-app/src/config/theme-color.ts
   (PRIMARY #FF6129, TEXT #0A0A0B, …) để trang web và app không lệch tông. Không thêm
   font ngoài: nhúng webfont làm trang chậm và Apple/Google chỉ cần đọc được nội dung. */
:root {
  --brand: #ff6129;
  --brand-pressed: #fc3b00;
  --brand-surface: #fff0ea;
  --ink: #0a0a0b;
  --ink-2: #5a5a5e;
  --ink-3: #8e8e93;
  --line: #ececec;
  --surface: #f5f5f6;
  --warn: #f5a623;
  --warn-surface: #fff4e3;
  --ok: #00b871;
  --ok-surface: #e7f8f0;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero cam ---------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #ff6129 0%, #e8431a 100%);
  color: #fff;
  padding: 40px 20px 88px; /* 88 = chừa chỗ cho thẻ nội dung đè lên */
}
.hero-in { max-width: 800px; margin: 0 auto; }
.hero img { height: 34px; width: auto; display: block; }
.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 26px 0 10px;
}
.hero p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; max-width: 60ch; }
.stamp {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Thẻ nội dung đè lên hero ------------------------------------------ */
.wrap { max-width: 800px; margin: -64px auto 0; padding: 0 20px 64px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 28px 32px;
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.05), 0 12px 32px -12px rgba(10, 10, 11, 0.16);
}

/* ---- Chữ ---------------------------------------------------------------- */
h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.card > h2:first-of-type { border-top: 0; padding-top: 14px; margin-top: 8px; }
h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 12px; }
li { margin-bottom: 7px; }
li::marker { color: var(--brand); }
b, strong { font-weight: 700; }
a { color: var(--brand-pressed); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

/* ---- Bảng: gạch ngang thay vì lưới ô, dễ đọc hơn nhiều ------------------ */
.tbl { width: 100%; overflow-x: auto; margin: 14px 0 18px; }
table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th, tr:first-child th {
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
tr:first-child th:first-child { border-top-left-radius: 10px; }
tr:first-child th:last-child { border-top-right-radius: 10px; }
tbody tr:last-child td, tr:last-child td { border-bottom: 0; }

/* ---- Hộp nhấn mạnh ------------------------------------------------------ */
.box {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  background: var(--brand-surface);
  border-left: 4px solid var(--brand);
}
.box > :last-child { margin-bottom: 0; }
.box.warn { background: var(--warn-surface); border-left-color: var(--warn); }
.box.ok { background: var(--ok-surface); border-left-color: var(--ok); }

/* ---- Bước 1-2-3 (trang xoá tài khoản) ---------------------------------- */
.steps { list-style: none; padding: 0; margin: 14px 0 18px; counter-reset: s; }
.steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: 12px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Liên hệ / chi nhánh ------------------------------------------------ */
.contact { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0 4px; }
.contact div { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.contact .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 3px; }
.contact .v { font-size: 15px; }
.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  margin: 4px 0 6px;
}
.cta:hover { background: var(--brand-pressed); color: #fff !important; }

/* ---- Chân trang --------------------------------------------------------- */
.foot { max-width: 800px; margin: 0 auto; padding: 0 20px 56px; color: var(--ink-3); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot nav a { font-weight: 600; }
.foot nav b { color: var(--ink); }

@media (max-width: 560px) {
  .card { padding: 8px 18px 26px; }
  .hero { padding: 32px 20px 80px; }
}

/* Trang pháp lý hay bị in ra kẹp hồ sơ — bỏ nền cam, giữ chữ đen trên trắng. */
@media print {
  body { background: #fff; }
  .hero { background: none; color: #000; padding: 0 0 12px; }
  .hero img { filter: invert(1); }
  .hero p, .stamp { color: #000; background: none; padding-left: 0; }
  .wrap { margin: 0; padding: 0; }
  .card { box-shadow: none; padding: 0; }
}
