.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6); /* Text Main color for the main content area */
  background-color: var(--bg-color, #0D0E12); /* Background color for the main page */
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image block on top, text block below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--bg-color, #0D0E12); /* Consistent with body background */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 20px; /* Space between image and content */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default for desktop, changed for mobile */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.page-terms-conditions__hero-content {
  text-align: center;
  padding: 30px 20px;
  width: 100%;
  max-width: 800px; /* Constrain content width */
  margin-bottom: 40px;
}

.page-terms-conditions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font-size clamp */
  font-weight: 700;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 18px;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 30px;
}

.page-terms-conditions__section {
  padding: 60px 0;
}

.page-terms-conditions__content-area,
.page-terms-conditions__light-bg {
  background-color: #f9f9f9; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-terms-conditions__dark-bg {
  background-color: var(--card-bg, #17191F); /* Dark background from custom palette */
  color: var(--text-main, #FFF3E6); /* Light text for dark background */
}

.page-terms-conditions__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-terms-conditions__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
}

.page-terms-conditions__article-body p {
  margin-bottom: 1em;
}

.page-terms-conditions__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit; /* Inherit color from parent section */
}

.page-terms-conditions__article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button color */
  color: #ffffff; /* White text for button */
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary:hover,
.page-terms-conditions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
}

.page-terms-conditions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #A84F0C); /* Border color from custom palette */
  overflow: hidden;
  background: var(--card-bg, #17191F); /* Card BG from custom palette */
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF3E6); /* Text Main color for FAQ question */
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter hover for dark background */
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color, #FFB04D); /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-orange-color, #D96800); /* Deep Orange for answer background */
  border-radius: 0 0 5px 5px;
  color: #ffffff; /* White text for dark background */
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-terms-conditions__container {
    padding: 20px 30px;
  }
  .page-terms-conditions__hero-content {
    padding: 20px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(26px, 3.5vw, 42px);
  }
  .page-terms-conditions__description {
    font-size: 17px;
  }
  .page-terms-conditions__section {
    padding: 50px 0;
  }
  .page-terms-conditions__section-title {
    font-size: clamp(22px, 2.8vw, 32px);
  }
  .page-terms-conditions__sub-title {
    font-size: clamp(18px, 2.2vw, 24px);
  }
  .page-terms-conditions__article-body {
    font-size: 16px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  /* HERO Chủ đề chính */
  .page-terms-conditions__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-terms-conditions__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural height */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__hero-content {
    padding: 20px 15px;
    margin-bottom: 30px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust H1 for smaller screens */
    margin-bottom: 10px;
  }
  .page-terms-conditions__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__section {
    padding: 40px 0;
  }
  .page-terms-conditions__section-title {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 30px;
  }
  .page-terms-conditions__sub-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-terms-conditions__article-body {
    font-size: 15px;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Hình ảnh chung và vùng chứa */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__article-image {
    margin: 20px auto;
  }

  /* Nút và vùng chứa nút */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* Add some space between stacked buttons */
  }

  /* Nếu có nhiều nút trong một vùng chứa flex, chúng sẽ cần: */
  .page-terms-conditions__hero-content .page-terms-conditions__cta-button:last-child {
    margin-bottom: 0;
  }

  /* Phần FAQ */
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question { padding: 15px; }
  .page-terms-conditions__faq-qtext { font-size: 15px; }
  .page-terms-conditions__faq-toggle { font-size: 20px; width: 24px; }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer { padding: 0 15px 15px; }
}