/*
 * Trang giới thiệu Hoàng Phát 68.
 *
 * Màu, bo góc, khoảng cách và font lấy NGUYÊN từ `src/theme/tokens.ts` của app React Native
 * (D:\wamp64\www\hoang-phat-app). Đây là lý do các con số trông lẻ — bản thiết kế gốc không
 * theo thang 4/8, nó dùng cả 7, 9, 11, 13, 17, 22. Ép về thang tròn là trang web và app lệch
 * nhau, mà đại lý dùng cả hai trong cùng một ngày.
 *
 * Một trang, một bộ CSS, co giãn theo bề rộng — KHÔNG dựng hai bản riêng cho máy tính và
 * điện thoại. Hai bản là hai chỗ phải sửa mỗi lần đổi câu chữ.
 */

/* ── Token ────────────────────────────────────────────────────────────────── */

:root {
  --primary: #4B9EC6;
  --primary-dark: #2C7EA8;
  --primary-darker: #1F5F80;
  --gradient-from: #4FA6CF;
  --gold: #E8A33C;
  --success: #2B7A5B;

  --bg: #F4F7F8;
  --card: #FFFFFF;
  --tint: #EAF4F9;
  --tint-strong: #DCEDF6;
  --tint-success: #EDF6F1;

  --border: #E2E8EB;
  --border-light: #EEF2F4;

  --text: #22282B;
  --text-product: #2B2B2B;
  --text-secondary: #6B7378;
  --text-muted: #8A9196;
  --text-faint: #A7B0B5;

  --r-sm: 11px;
  --r-md: 15px;
  --r-card: 18px;
  --r-card-lg: 20px;
  --r-hero: 22px;
  --r-btn: 16px;
  --r-sheet: 26px;
  --r-pill: 999px;

  /*
   * Padding ngang của trang. clamp() thay cho ba media query: hẹp thì 18px như app,
   * rộng thì tối đa 120px như bản thiết kế, ở giữa thì giãn mượt theo bề rộng.
   */
  --pad-x: clamp(18px, 6vw, 120px);
  --max-w: 1200px;

  --shadow-card: 0 12px 34px rgba(20, 50, 70, 0.07);
  --shadow-phone: 0 30px 70px rgba(20, 50, 70, 0.22);
}

/* ── Nền chung ────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/*
 * Ai bật "giảm chuyển động" trong hệ điều hành thường là vì chuyển động làm họ chóng mặt
 * hoặc buồn nôn — tắt cuộn mượt và mọi hiệu ứng cho họ.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a {
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover { color: var(--primary-darker); }

/*
 * Viền focus KHÔNG được tắt. Người dùng bàn phím (và nhân viên kho đeo găng dùng máy tính)
 * mất dấu focus là không biết mình đang ở đâu trên trang.
 */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* Link nhảy tới nội dung — chỉ hiện khi tab tới, dành cho người dùng bàn phím. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.skip-link:focus { left: 16px; }

/* ── Nút ──────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* 44px là vùng chạm tối thiểu — dưới mức này ngón tay bấm trượt. Lấy từ MIN_TOUCH của app. */
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--r-btn);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--primary { background: var(--primary-dark); color: #FFFFFF; }
.btn--primary:hover { background: var(--primary-darker); color: #FFFFFF; }

.btn--ghost { color: var(--primary-dark); border: 1px solid var(--tint-strong); }
.btn--ghost:hover { background: var(--tint); color: var(--primary-dark); }

.btn--white { background: #FFFFFF; color: var(--text); font-weight: 700; font-size: 15px; padding: 13px 26px; }
.btn--white:hover { background: var(--tint); color: var(--text); }

.btn--outline-white {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
}
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.26); color: #FFFFFF; }

/* ── Thanh đầu trang ──────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.brand:hover { color: inherit; }

.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gradient-from), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; }
.brand__tag { font-size: 11.5px; color: var(--text-muted); }
.brand--dark .brand__name { color: #FFFFFF; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
/*
 * Đệm dọc để link menu cao đủ 44px kể cả khi chữ chỉ chiếm 22px. Máy tính bảng cũng là
 * màn cảm ứng — link cao 22px thì ngón tay bấm trượt sang mục bên cạnh.
 */
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav__link:hover { color: var(--primary-dark); }
.nav__cta { margin-left: -12px; }
.nav__cta + .nav__cta { margin-left: -14px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(165deg, #FFFFFF 0%, var(--tint) 100%);
  padding-block: clamp(36px, 6vw, 76px) clamp(40px, 6vw, 68px);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint-strong);
  color: var(--primary-dark);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__title {
  /* clamp: 32px trên điện thoại (bản thiết kế app) → 50px trên máy tính. */
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero__note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--text);
  color: #FFFFFF;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  min-height: 44px;
  transition: background-color 0.16s ease;
}
.store-btn:hover { background: #000000; color: #FFFFFF; }
.store-btn__logo { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn__small { font-size: 10.5px; opacity: 0.72; }
.store-btn__big { font-size: 15.5px; font-weight: 700; }

/* ── Khung điện thoại ─────────────────────────────────────────────────────── */

.phone {
  flex: 0 0 auto;
  width: 330px;
  border-radius: 42px;
  background: var(--text);
  padding: 11px;
  box-shadow: var(--shadow-phone);
}

.phone__screen {
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
}

.phone__head {
  background: linear-gradient(150deg, var(--gradient-from), var(--primary-dark));
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #FFFFFF;
}

.phone__user { display: flex; align-items: center; gap: 10px; }
.phone__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
}
.phone__hello { display: block; font-size: 10.5px; opacity: 0.82; }
.phone__name { display: block; font-size: 13.5px; font-weight: 700; }

.credit {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.credit__row { display: flex; align-items: baseline; gap: 8px; font-size: 11px; opacity: 0.85; }
.credit__term { margin-left: auto; font-size: 10.5px; }
.credit__amount { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; }
.credit__bar { height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.26); }
.credit__bar span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--gold); }
.credit__used { font-size: 10.5px; opacity: 0.85; }

.phone__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.mini-cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-cat__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--text-secondary);
  text-align: center;
}
.mini-cat__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}
.mini-cat__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-prod {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-card-lg);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-prod__img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  background: var(--bg);
}
.mini-prod__info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mini-prod__name { font-size: 12.5px; font-weight: 600; color: var(--text-product); line-height: 1.35; }
.mini-prod__prices { display: flex; align-items: baseline; gap: 7px; }
.mini-prod__price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.mini-prod__was { font-size: 11px; color: var(--text-faint); text-decoration: line-through; }

.chip {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.chip--tier { background: var(--tint); color: var(--primary-dark); }
.chip--stock { background: var(--tint-success); color: var(--success); }

/* ── Dải số liệu ──────────────────────────────────────────────────────────── */

/* Kéo chồng lên hero một đoạn để thẻ số liệu "đè" lên nền gradient, như bản thiết kế. */
.stats-wrap { margin-top: clamp(-34px, -2.5vw, -20px); position: relative; z-index: 1; }

.stats {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-hero);
  padding: clamp(22px, 2.5vw, 30px) clamp(22px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 34px);
  box-shadow: var(--shadow-card);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.stat__label { font-size: clamp(12.5px, 1.1vw, 13.5px); line-height: 1.45; color: var(--text-secondary); }

/* ── Khối nội dung ────────────────────────────────────────────────────────── */

.section { padding-block: clamp(44px, 6vw, 82px) 0; }
.section--tight { padding-block: clamp(44px, 5.5vw, 76px) 0; }
.section:last-of-type { padding-bottom: clamp(44px, 6vw, 82px); }

.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section__title {
  font-size: clamp(25px, 3.2vw, 35px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.section__lead { font-size: clamp(15px, 1.4vw, 16.5px); line-height: 1.6; color: var(--text-secondary); }

.cards {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-btn);
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title { font-size: clamp(17.5px, 1.7vw, 20px); font-weight: 700; line-height: 1.3; }
.card__text { font-size: clamp(14px, 1.25vw, 14.5px); line-height: 1.62; color: var(--text-secondary); }

/* ── Ba bước ──────────────────────────────────────────────────────────────── */

.steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
  padding: clamp(20px, 2.2vw, 28px);
  display: flex;
  gap: 14px;
}
.step__num {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--primary-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.step__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step__title { font-size: clamp(16px, 1.6vw, 18.5px); font-weight: 700; line-height: 1.3; }
.step__text { font-size: clamp(13.5px, 1.25vw, 14.5px); line-height: 1.6; color: var(--text-secondary); }

/* Trên máy tính, ba bước là ba cột nên số xếp trên tiêu đề cho thoáng. */
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { flex-direction: column; }
}

/* ── Dải kêu gọi ──────────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(140deg, var(--gradient-from), var(--primary-dark));
  border-radius: var(--r-sheet);
  padding: clamp(30px, 4vw, 54px) clamp(24px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.cta__copy { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.cta__title {
  font-size: clamp(23px, 2.9vw, 32px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  line-height: 1.22;
}
.cta__text {
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}
.cta__actions { display: flex; flex-direction: column; gap: 11px; flex: 0 0 auto; }
.cta__actions .btn { min-width: 210px; }

/* ── Chân trang ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--text);
  padding-block: clamp(34px, 4vw, 54px) clamp(26px, 3vw, 40px);
}

.footer__top { display: flex; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.footer__about { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer__desc { font-size: 14px; line-height: 1.65; color: var(--text-faint); }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--border);
}
.footer__line svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__link { font-size: 14px; color: var(--border); }
.footer__link:hover { color: #FFFFFF; }

.footer__bottom {
  margin-top: clamp(26px, 3vw, 34px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.footer__copy { font-size: 13px; color: var(--text-muted); }
.footer__legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal .footer__link { font-size: 13px; color: var(--text-muted); }

/* ── Màn vừa: xếp hero dọc, lưới về 2 cột ─────────────────────────────────── */

@media (max-width: 1023px) {
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__copy { max-width: none; }
  .phone { align-self: center; }
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
  .cta__actions .btn { flex: 1 1 200px; }
}

/* ── Màn hẹp: một cột, menu thu vào nút ───────────────────────────────────── */

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  /*
   * Menu điện thoại: đổ xuống dưới thanh đầu trang, chiếm trọn bề ngang.
   * Mặc định ẩn bằng `display: none` chứ không phải chiều cao 0 — phần tử ẩn kiểu này
   * không bị tab tới, khỏi cảnh người dùng bàn phím lạc vào menu vô hình.
   */
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 10px var(--pad-x) 18px;
    box-shadow: var(--shadow-card);
  }
  .nav.is-open { display: flex; }

  .nav__link {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav__cta { margin: 6px 0 0; }
  .nav__cta + .nav__cta { margin-left: 0; }

  .site-header { position: relative; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }

  .store-row { flex-direction: column; }
  .store-btn { justify-content: center; }

  .footer__top { flex-direction: column; }
  .footer__legal { margin-left: 0; }
}

/* Điện thoại rất hẹp: khung máy co lại cho vừa, không tràn ngang. */
@media (max-width: 400px) {
  .phone { width: 100%; max-width: 300px; }
}

/* ── Trang văn bản pháp lý ────────────────────────────────────────────────── */

/*
 * Chính sách quyền riêng tư và Điều khoản sử dụng — hai trang chữ dài, không có ảnh.
 *
 * Bề rộng dòng giới hạn 68ch chứ không kéo hết `--max-w`: dòng dài quá 75 ký tự thì mắt
 * mất dấu khi xuống dòng, mà đây là loại văn bản người ta buộc phải đọc kỹ chứ không lướt.
 */

.legal {
  background: var(--bg);
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.legal__inner {
  max-width: 68ch;
}

.legal__eyebrow {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.legal__title {
  margin: 0 0 11px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text);
}

.legal__meta {
  margin: 0 0 30px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Đoạn mở đầu tách khỏi phần thân bằng nền nhạt — người đọc vội chỉ cần đọc khối này. */
.legal__lead {
  margin-bottom: 34px;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--tint);
  border: 1px solid var(--border-light);
}

.legal__lead p {
  margin: 0 0 11px;
}

.legal__lead p:last-child {
  margin-bottom: 0;
}

.legal__h2 {
  margin: 38px 0 13px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.legal__h3 {
  margin: 26px 0 11px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}

.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.legal p {
  margin: 0 0 13px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__list {
  margin: 0 0 13px;
  padding-left: 22px;
}

.legal__list li {
  margin-bottom: 9px;
}

/* Ghi chú phụ: viền trái thay cho chữ in nghiêng — nghiêng cả đoạn dài rất khó đọc. */
.legal__note {
  margin: 17px 0;
  padding: 15px 17px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--card);
  font-size: 14.5px;
}

/*
 * Bảng dữ liệu thu thập. Bọc trong khung cuộn ngang riêng: ba cột không nén vừa màn hình
 * điện thoại, mà để tràn ra thì cả TRANG cuộn ngang — lỗi khó chịu hơn nhiều.
 */
.legal__table-wrap {
  margin: 0 0 17px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
}

.legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.legal__table th,
.legal__table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
}

.legal__table th {
  font-weight: 600;
  color: var(--text);
  background: var(--tint);
  white-space: nowrap;
}

.legal__table td {
  color: var(--text-secondary);
}

.legal__table tr:last-child td {
  border-bottom: 0;
}

.legal__back {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

/* Header rút gọn: chỉ một nút, đẩy sang phải như thanh nav đầy đủ ở trang chủ. */
.nav--legal {
  margin-left: auto;
}

/* Chân trang của trang pháp lý không có ba cột phía trên nên bỏ luôn đường kẻ ngăn. */
.footer__bottom--only {
  border-top: 0;
  padding-top: 0;
}
