/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Sử dụng màu chữ chính cho nền tối */
  background-color: var(--background-color); /* Nền tối */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-terms-conditions__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Lớp phủ mờ để chữ dễ đọc */
  color: #F2FFF6; /* Text Main */
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2C14E; /* Gold */
  max-width: 900px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin-bottom: 25px;
  color: #A7D9B8; /* Text Secondary */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #F2C14E; /* Gold */
  position: relative;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #13994A; /* Darker green from button gradient */
  border-radius: 2px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #57E38D; /* Glow */
}

.page-terms-conditions__text-block {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Section Backgrounds */
.page-terms-conditions__dark-section {
  background-color: #08160F; /* Background */
  padding: 60px 0;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__light-bg {
  background-color: #11271B; /* Card BG */
  padding: 60px 0;
  color: #F2FFF6; /* Text Main */
}

/* Links */
.page-terms-conditions__link {
  color: #57E38D; /* Glow */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #F2C14E; /* Gold */
}

/* CTA Button */
.page-terms-conditions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  background-color: #1E3A2A; /* Divider */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item summary:hover {
  background-color: #2E7A4E; /* Border */
}

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

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  content: '−';
}

.page-terms-conditions__faq-answer {
  padding: 15px 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding-top: 15px;
  padding-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.5em;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-terms-conditions__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__container {
    padding: 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__text-block, .page-terms-conditions__list-item {
    font-size: 0.9em;
  }

  .page-terms-conditions__dark-section, .page-terms-conditions__light-bg, .page-terms-conditions__faq-section {
    padding: 40px 0;
  }

  /* Mobile Image Responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__overview-section,
  .page-terms-conditions__acceptance-section,
  .page-terms-conditions__account-section,
  .page-terms-conditions__transaction-section,
  .page-terms-conditions__responsible-gambling-section,
  .page-terms-conditions__prohibited-conduct-section,
  .page-terms-conditions__intellectual-property-section,
  .page-terms-conditions__disclaimer-section,
  .page-terms-conditions__dispute-resolution-section,
  .page-terms-conditions__amendments-section,
  .page-terms-conditions__governing-law-section,
  .page-terms-conditions__contact-section,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile Button Responsiveness */
  .page-terms-conditions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__cta-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 1.2em;
  }

  .page-terms-conditions__faq-answer {
    padding: 10px 20px 15px;
  }
}