/* ======================================================
   CHÍNH SÁCH - BLUE THEME FINAL
   Đồng bộ với trang chủ: xanh dương / trắng / xám nhạt.
====================================================== */

:root {
  --blue: #0b7cff;
  --blue-dark: #075fcc;
  --blue-soft: #eaf4ff;
  --blue-soft-2: #f5faff;

  --green: #12b76a;
  --green-soft: #ecfdf3;

  --orange: #ff7a1a;
  --orange-soft: #fff3e8;

  --black: #0f172a;
  --black-soft: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;

  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 35px rgba(15, 23, 42, 0.06);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;

  --container: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.policy-container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.policy-section {
  padding: 84px 0;
}

.policy-section-soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft-2) 100%);
}

.policy-section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.policy-section-heading h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.policy-section-heading p {
  color: var(--gray);
}

.policy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

.policy-eyebrow.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* BUTTONS */
.policy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 850;
  transition: 0.25s ease;
  white-space: nowrap;
  text-align: center;
}

.policy-btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #00a3ff);
  box-shadow: 0 14px 30px rgba(11, 124, 255, 0.26);
}

.policy-btn-primary:hover,
.policy-btn-outline:hover,
.policy-btn-contract:hover,
.policy-header-cta:hover {
  transform: translateY(-2px);
}

.policy-btn-outline {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
}

.policy-btn-outline:hover {
  color: var(--blue);
  border-color: rgba(11, 124, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

.policy-btn-blue,
.policy-btn-zalo {
  color: var(--white);
  background: var(--blue);
}

.policy-btn-zalo {
  background: #0068ff;
}

/* HEADER */
.policy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

.policy-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.policy-logo-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, var(--blue));
  box-shadow: 0 14px 28px rgba(11, 124, 255, 0.22);
  font-size: 0.85rem;
}

.policy-menu {
  display: none;
  align-items: center;
  gap: 24px;
  color: var(--gray);
  font-weight: 800;
  font-size: 0.95rem;
}

.policy-menu a {
  position: relative;
  padding: 26px 0;
}

.policy-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.22s ease;
}

.policy-menu a:hover,
.policy-menu a.active {
  color: var(--blue);
}

.policy-menu a:hover::after,
.policy-menu a.active::after {
  width: 100%;
}

.policy-header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #00a3ff);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(11, 124, 255, 0.22);
  transition: 0.25s ease;
}

.policy-menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
}

.policy-mobile-menu {
  display: none;
  padding: 0 16px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.policy-mobile-menu.active {
  display: block;
}

.policy-mobile-menu a {
  display: block;
  padding: 13px 4px;
  color: var(--black-soft);
  font-weight: 800;
  border-bottom: 1px solid var(--gray-light);
}

.policy-mobile-menu a.active {
  color: var(--blue);
}

.policy-mobile-cta {
  margin-top: 14px;
  text-align: center;
  border-radius: 999px;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--blue), #00a3ff);
}

/* HERO */
.policy-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
  background:
    radial-gradient(circle at top left, rgba(11, 124, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(11, 124, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.policy-hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.policy-hero-content h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -3px;
}

.policy-hero-content p {
  max-width: 760px;
  color: var(--gray);
  font-size: 1.06rem;
  margin-bottom: 26px;
}

.policy-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-hero-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #16233a, var(--blue));
  color: var(--white);
  box-shadow: var(--shadow);
}

.policy-hero-card span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.45rem;
}

.policy-hero-card h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.policy-hero-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* POLICY CARDS */
.policy-card-grid {
  display: grid;
  gap: 20px;
}

.policy-info-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
  overflow: hidden;
}

.policy-info-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.06);
}

.policy-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 124, 255, 0.26);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.policy-card-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-soft), var(--white));
  border: 1px solid rgba(11, 124, 255, 0.12);
  font-size: 1.75rem;
}

.policy-info-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.policy-mini-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.policy-mini-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.policy-mini-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 950;
  font-size: 0.85rem;
}

.policy-mini-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--black);
}

.policy-mini-item p {
  color: var(--gray);
  font-size: 0.96rem;
}

/* CONTRACT */
.policy-contract-section {
  padding: 32px 0 86px;
  background: var(--white);
}

.policy-contract-box {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 2px dashed rgba(11, 124, 255, 0.45);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(11, 124, 255, 0.10), transparent 38%),
    linear-gradient(135deg, #f5faff, #ffffff);
  box-shadow: 0 24px 70px rgba(11, 124, 255, 0.12);
}

.policy-contract-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 2.4rem;
  box-shadow: 0 14px 30px rgba(11, 124, 255, 0.13);
}

.policy-contract-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.policy-contract-content p {
  color: var(--gray);
  margin-bottom: 22px;
}

.policy-btn-contract {
  min-height: 58px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #00a3ff);
  box-shadow: 0 16px 34px rgba(11, 124, 255, 0.24);
}

.policy-btn-contract:hover {
  box-shadow: 0 22px 44px rgba(11, 124, 255, 0.34);
}

/* NOTES */
.policy-note-grid {
  display: grid;
  gap: 18px;
}

.policy-note-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.policy-note-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--blue-soft);
  font-size: 1.5rem;
}

.policy-note-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.policy-note-card p {
  color: var(--gray);
}

/* CONTACT */
.policy-contact {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(11, 124, 255, 0.35), transparent 35%),
    linear-gradient(135deg, #0b1220, #101828);
}

.policy-contact-grid {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: 72px 0;
}

.policy-contact-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.policy-contact-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.policy-contact-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.policy-contact-row {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.policy-contact-row span {
  font-size: 1.35rem;
}

.policy-contact-row p {
  font-size: 0.9rem;
}

.policy-contact-row strong {
  display: block;
  color: var(--white);
}

.policy-contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.policy-footer {
  display: grid;
  gap: 6px;
  padding: 20px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* FLOATING CONTACT */
.policy-floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.policy-float-main,
.policy-float-item {
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.24);
}

.policy-float-main {
  width: 62px;
  height: 62px;
  font-size: 1.45rem;
  background: linear-gradient(135deg, var(--blue), #00a3ff);
  animation: policyPulse 1.7s infinite, policyShake 2.8s infinite;
}

.policy-floating-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.25s ease;
}

.policy-floating-contact:hover .policy-floating-menu,
.policy-floating-contact.active .policy-floating-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.policy-float-item {
  position: relative;
  width: 50px;
  height: 50px;
  font-weight: 900;
  transition: 0.2s ease;
}

.policy-float-item:hover {
  transform: translateY(-3px) scale(1.05);
}

.policy-float-item span {
  position: absolute;
  right: 62px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: 0.2s ease;
}

.policy-float-item:hover span {
  opacity: 1;
}

.policy-call {
  background: var(--green);
}

.policy-zalo {
  background: #0068ff;
}

.policy-messenger {
  background: #7c3aed;
}

@keyframes policyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 124, 255, 0.45), 0 14px 30px rgba(16, 24, 40, 0.24);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(11, 124, 255, 0), 0 14px 30px rgba(16, 24, 40, 0.24);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(11, 124, 255, 0), 0 14px 30px rgba(16, 24, 40, 0.24);
  }
}

@keyframes policyShake {
  0%, 82%, 100% {
    transform: rotate(0deg);
  }

  85% {
    transform: rotate(8deg);
  }

  88% {
    transform: rotate(-8deg);
  }

  91% {
    transform: rotate(6deg);
  }

  94% {
    transform: rotate(-6deg);
  }

  97% {
    transform: rotate(3deg);
  }
}

/* RESPONSIVE */
@media (min-width: 560px) {
  .policy-hero-actions {
    flex-direction: row;
  }

  .policy-contact-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .policy-note-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .policy-contract-box {
    grid-template-columns: auto 1fr;
    padding: 42px;
  }
}

@media (min-width: 900px) {
  .policy-menu,
  .policy-header-cta {
    display: flex;
  }

  .policy-menu-toggle,
  .policy-mobile-menu {
    display: none !important;
  }

  .policy-hero {
    padding: 96px 0 108px;
  }

  .policy-hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 52px;
  }

  .policy-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 420px) {
  .policy-container {
    width: min(100% - 24px, var(--container));
  }

  .policy-section {
    padding: 64px 0;
  }

  .policy-hero {
    padding: 70px 0 76px;
  }

  .policy-hero-content h1 {
    letter-spacing: -2px;
  }

  .policy-btn {
    width: 100%;
  }

  .policy-contract-box {
    padding: 22px;
    border-radius: 26px;
  }

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

  .policy-mini-item > span {
    margin-bottom: -4px;
  }

  .policy-float-item span {
    display: none;
  }
}
