:root {
  --ink: #2d1710;
  --muted: #6f5d55;
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --wine: #701f19;
  --wine-dark: #43100d;
  --gold: #c7862f;
  --gold-soft: #f4dfb9;
  --line: #eadbc9;
  --green: #286344;
  --shadow: 0 22px 60px rgba(45, 23, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% -5%, rgba(199, 134, 47, 0.18), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #f7efe4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.policy-shell {
  min-height: 100vh;
  padding-bottom: 88px;
}

.policy-topbar {
  background: var(--wine-dark);
  color: #fff8e9;
}

.policy-topbar-inner,
.policy-header-inner,
.policy-main,
.policy-footer-inner {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.policy-topbar-inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
}

.policy-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.policy-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(112, 31, 25, 0.12);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 24px rgba(45, 23, 16, 0.06);
  backdrop-filter: blur(14px);
}

.policy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.policy-brand img {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(199, 134, 47, 0.42);
  border-radius: 50%;
  object-fit: cover;
}

.policy-brand span,
.policy-brand strong {
  display: block;
}

.policy-brand span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.policy-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.policy-home-link:hover {
  border-color: var(--gold);
  background: #fff7e8;
  transform: translateY(-1px);
}

.policy-main {
  padding: 40px 0 28px;
}

.policy-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.policy-breadcrumbs a {
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
}

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(199, 134, 47, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 222, 158, 0.24), transparent 18rem),
    linear-gradient(135deg, #51140f 0%, #2b0c09 100%);
  color: #fff9ee;
  box-shadow: var(--shadow);
}

.policy-hero::after {
  content: "ĐỨC LƯƠNG";
  position: absolute;
  right: -8px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 11vw, 120px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.policy-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: #efbd6e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.policy-lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 249, 238, 0.82);
  font-size: clamp(15px, 2.4vw, 18px);
}

.policy-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  color: rgba(255, 249, 238, 0.68);
  font-size: 12px;
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 30px;
}

.policy-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 28px rgba(45, 23, 16, 0.06);
}

.policy-summary span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff0d1;
  font-size: 19px;
}

.policy-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.policy-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.policy-content,
.policy-aside-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-strong);
  box-shadow: 0 12px 34px rgba(45, 23, 16, 0.07);
}

.policy-content {
  overflow: hidden;
}

.policy-section {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.policy-section h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
}

.policy-section h3 {
  margin: 18px 0 6px;
  font-size: 15px;
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.policy-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ec;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.policy-list.is-warning li::before {
  content: "—";
  background: #f8eae4;
  color: var(--wine);
}

.policy-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #fff5df;
  color: #5d3a21;
  font-size: 13px;
}

.policy-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  counter-reset: policy-step;
}

.policy-step {
  position: relative;
  padding: 14px 14px 14px 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  counter-increment: policy-step;
}

.policy-step::before {
  content: counter(policy-step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.policy-step strong,
.policy-step small {
  display: block;
}

.policy-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.policy-table-wrap {
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.policy-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: #fff2d8;
  color: var(--ink);
  font-size: 12px;
}

.policy-table td {
  color: var(--muted);
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-aside {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}

.policy-aside-card {
  padding: 20px;
}

.policy-aside-card.is-contact {
  border-color: rgba(199, 134, 47, 0.34);
  background: linear-gradient(145deg, #fff9ed, #fff3dc);
}

.policy-aside-card h2,
.policy-aside-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.policy-aside-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.policy-aside-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.policy-aside-card a:last-child {
  border-bottom: 0;
}

.policy-nav a[aria-current="page"] {
  color: var(--ink);
}

.policy-nav a[aria-current="page"]::after {
  content: "Đang xem";
  padding: 2px 7px;
  border-radius: 999px;
  background: #f2e3c8;
  color: var(--wine);
  font-size: 9px;
  text-transform: uppercase;
}

.policy-contact-button {
  justify-content: center !important;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px;
  background: var(--wine);
  color: #fff !important;
}

.policy-footer {
  margin-top: 28px;
  padding: 28px 0;
  background: #2d0d09;
  color: rgba(255, 249, 238, 0.76);
}

.policy-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.policy-footer strong {
  display: block;
  margin-bottom: 5px;
  color: #fff9ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.policy-footer p {
  max-width: 600px;
  margin: 0;
  font-size: 12px;
}

.policy-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px 14px;
}

.policy-footer-links a {
  color: #efbd6e;
  font-size: 12px;
  font-weight: 700;
}

.policy-mobile-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
  padding: 9px max(12px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  border-top: 1px solid rgba(112, 31, 25, 0.16);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 -10px 28px rgba(45, 23, 16, 0.12);
  backdrop-filter: blur(14px);
}

.policy-mobile-actions a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--wine);
  border-radius: 12px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.policy-mobile-actions a:last-child {
  background: var(--wine);
  color: #fff;
}

@media (max-width: 820px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .policy-shell {
    padding-bottom: 74px;
  }

  .policy-topbar-inner {
    gap: 11px;
    font-size: 10px;
  }

  .policy-topbar-inner span:last-child {
    display: none;
  }

  .policy-header-inner {
    min-height: 66px;
  }

  .policy-brand img {
    width: 44px;
    height: 44px;
  }

  .policy-brand strong {
    font-size: 15px;
  }

  .policy-home-link {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .policy-main {
    padding-top: 24px;
  }

  .policy-hero {
    border-radius: 18px;
  }

  .policy-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .policy-summary article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 0 10px;
    padding: 14px;
  }

  .policy-summary span {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .policy-section {
    padding: 21px 18px;
  }

  .policy-aside {
    grid-template-columns: 1fr;
  }

  .policy-footer-inner {
    display: grid;
  }

  .policy-footer-links {
    justify-content: flex-start;
  }

  .policy-mobile-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
