/* Trang chính sách / điều khoản (/chinh-sach/<slug>): trắng, gọn, dễ đọc */
.cs-page {
  --cs-text: #1e293b;
  --cs-muted: #64748b;
  --cs-border: #e2e8f0;
  --cs-accent: #2563eb;
  --cs-soft: #f8fafc;
  background: #f5f7fa;
  padding: 1.5rem 0 3rem;
  color: var(--cs-text);
}

.cs-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Danh sách chính sách */
.cs-aside {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
}

.cs-aside-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
  padding: 0 0.5rem 0.75rem;
}

.cs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-nav a {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #334155;
  text-decoration: none;
}

.cs-nav a:hover {
  background: var(--cs-soft);
  color: var(--cs-text);
}

.cs-nav a.is-active {
  background: #eff6ff;
  color: var(--cs-accent);
  font-weight: 600;
}

.cs-nav-num {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--cs-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-nav a.is-active .cs-nav-num {
  background: var(--cs-accent);
  color: #fff;
}

.cs-nav-mobile {
  display: none;
}

/* Nội dung */
.cs-article {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  min-width: 0;
}

.cs-head {
  border-bottom: 1px solid var(--cs-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.cs-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cs-text);
  margin: 0;
}

.cs-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
  max-width: 820px;
  overflow-wrap: anywhere;
}

.cs-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cs-text);
  margin: 2rem 0 0.75rem;
}

.cs-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--cs-text);
  margin: 1.5rem 0 0.5rem;
}

.cs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cs-text);
  margin: 1.25rem 0 0.4rem;
}

.cs-content > :first-child {
  margin-top: 0;
}

.cs-content p {
  margin: 0 0 0.85rem;
}

.cs-content ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  list-style: disc;
}

.cs-content li {
  margin-bottom: 0.4rem;
  padding-left: 0.2rem;
}

.cs-content li::marker {
  color: #94a3b8;
}

.cs-content a {
  color: var(--cs-accent);
  text-decoration: none;
}

.cs-content a:hover {
  text-decoration: underline;
}

/* Thông tin tài khoản ngân hàng (chính sách thanh toán) */
.cs-bank {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  background: var(--cs-soft);
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.cs-bank dt {
  font-weight: 500;
  color: var(--cs-muted);
}

.cs-bank dd {
  margin: 0;
  font-weight: 600;
  color: var(--cs-text);
  overflow-wrap: anywhere;
}

/* Hỗ trợ + chuyển trang */
.cs-help {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--cs-soft);
  border: 1px solid var(--cs-border);
}

.cs-help-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cs-help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--cs-muted);
}

.cs-help-row a {
  color: var(--cs-accent);
  text-decoration: none;
  font-weight: 500;
}

.cs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--cs-text);
  min-width: 0;
}

.cs-pager-link:hover {
  border-color: #93c5fd;
  background: var(--cs-soft);
}

.cs-pager-next {
  text-align: right;
  grid-column: 2;
}

.cs-pager-label {
  font-size: 0.8rem;
  color: var(--cs-muted);
}

.cs-pager-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Tablet / mobile */
@media (max-width: 991.98px) {
  .cs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-aside {
    display: none;
  }

  .cs-nav-mobile {
    display: block;
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    background: var(--cs-soft);
  }

  .cs-nav-mobile summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .cs-nav-mobile .cs-nav {
    padding: 0 0.5rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .cs-page {
    padding: 0.75rem 0 2rem;
  }

  .cs-article {
    padding: 1.25rem 1rem;
    border-radius: 10px;
  }

  .cs-title {
    font-size: 1.35rem;
  }

  .cs-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cs-content h2 {
    font-size: 1.08rem;
  }

  .cs-bank {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .cs-bank dd {
    margin-bottom: 0.5rem;
  }

  .cs-pager {
    grid-template-columns: 1fr;
  }

  .cs-pager-next {
    grid-column: auto;
  }
}
