/* ===== Điều khoản dịch vụ 123b ===== */
.page-terms-conditions {
  background: #0D0E12;
  color: #FFF3E6;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  padding: 10px 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-terms-conditions__hero-image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 140, 26, 0.2);
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.page-terms-conditions__hero-content {
  padding-top: 8px;
}

.page-terms-conditions__hero-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #FF8C1A;
  margin: 0 0 8px;
  line-height: 1.2;
}

.page-terms-conditions__hero-subtitle {
  font-size: 1.05rem;
  color: #FFF3E6;
  max-width: 85ch;
  margin: 0 0 16px;
}

.page-terms-conditions__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-terms-conditions__btn-register,
.page-terms-conditions__btn-login,
.page-terms-conditions__btn-download,
.page-terms-conditions__btn-home {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-register,
.page-terms-conditions__btn-login {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #1a1205;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 14px rgba(255, 140, 26, 0.35);
}

.page-terms-conditions__btn-download {
  background: #17191F;
  color: #FFB04D;
  border: 1px solid #A84F0C;
}

.page-terms-conditions__btn-home {
  background: transparent;
  color: #FFF3E6;
  border: 1px solid #A84F0C;
}

.page-terms-conditions__btn-register:hover,
.page-terms-conditions__btn-login:hover,
.page-terms-conditions__btn-download:hover,
.page-terms-conditions__btn-home:hover {
  opacity: 0.85;
}

/* Logo Grid */
.page-terms-conditions__logo-section {
  padding: 8px 16px 32px;
}

.page-terms-conditions__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-terms-conditions__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  width: 100%;
  background: #17191F;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #A84F0C;
}

.page-terms-conditions__logo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #0D0E12;
  border-radius: 8px;
  padding: 8px;
}

.page-terms-conditions__logo-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #1a1205;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #A84F0C;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-terms-conditions__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-terms-conditions__logo-item:nth-child(6) {
  grid-column: 3;
}

/* Guide / Nội dung */
.page-terms-conditions__guide-section {
  padding: 8px 16px 48px;
}

.page-terms-conditions__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.page-terms-conditions__guide-title {
  text-align: center;
  color: #FF8C1A;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 8px;
  font-weight: 700;
}

.page-terms-conditions__guide-intro {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 24px;
  text-align: justify;
}

.page-terms-conditions__faq-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 20px;
  list-style: none;
  font-weight: 700;
  color: #FFB04D;
  font-size: 1.05rem;
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D96800;
  color: #1a1205;
  font-weight: 800;
  flex-shrink: 0;
}

.page-terms-conditions__faq-answer {
  padding: 0 20px 18px;
  color: #FFF3E6;
  border-top: 1px solid #A84F0C;
  padding-top: 12px;
}

.page-terms-conditions__faq-answer p {
  margin: 0 0 12px;
}

.page-terms-conditions__prohibited-list {
  margin: 0;
  padding-left: 20px;
}

.page-terms-conditions__prohibited-list li {
  margin-bottom: 8px;
}

.page-terms-conditions__inline-link {
  color: #FFA53A;
  text-decoration: underline;
}

/* Guide CTA */
.page-terms-conditions__guide-cta {
  margin-top: 28px;
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.page-terms-conditions__guide-cta-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFB04D;
  margin: 0 0 16px;
}

.page-terms-conditions__guide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== responsive: tablet & mobile ===== */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-image {
    aspect-ratio: 16 / 6;
  }

  .page-terms-conditions__logo-grid {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 10px 12px 20px;
  }

  .page-terms-conditions__hero-image {
    aspect-ratio: 2 / 1;
  }

  .page-terms-conditions__hero-title {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .page-terms-conditions__hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .page-terms-conditions__btn-register,
  .page-terms-conditions__btn-login,
  .page-terms-conditions__btn-download,
  .page-terms-conditions__btn-home {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-terms-conditions__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .page-terms-conditions__logo-item:nth-child(5),
  .page-terms-conditions__logo-item:nth-child(6) {
    grid-column: auto;
  }

  .page-terms-conditions__guide-section {
    padding: 8px 12px 36px;
  }

  .page-terms-conditions__faq-question {
    font-size: 0.98rem;
    padding: 12px 14px;
  }

  .page-terms-conditions__guide-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-terms-conditions__guide-buttons a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  /* chống tràn ngang */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions {
    max-width: 100%;
    overflow-x: hidden;
  }
}