/* style/terms-conditions.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-terms-conditions {
  color: #ffffff; /* Body background is #000000 (dark), so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background: linear-gradient(180deg, rgba(1, 116, 57, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
  position: relative;
  overflow: hidden; /* Ensure no overflow */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-terms-conditions__hero-content {
  max-width: 900px;
  z-index: 1; /* Ensure content is above any background effects */
  position: relative; /* For z-index to work relative to hero section */
}

.page-terms-conditions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFFF00; /* Register/Login font color for H1 as it's a key element */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
  background: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #000000; /* Body background is dark, use this for content area */
  color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #017439; /* Main brand color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(1, 116, 57, 0.5);
  padding-bottom: 10px;
}

.page-terms-conditions h3 {
  font-size: 1.6rem;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #f0f0f0; /* Slightly off-white for paragraphs */
}

.page-terms-conditions__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-terms-conditions__list li strong {
  color: #FFFF00; /* Highlight key terms */
}

.page-terms-conditions a {
  color: #017439; /* Main brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #FFFF00; /* Highlight on hover */
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  max-width: 800px; /* Constrain content images */
  object-fit: cover;
}

/* FAQ Section */
.page-terms-conditions__faq-list {
  margin-top: 30px;
}

.page-terms-conditions__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFF00; /* FAQ question text color */
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.4); /* Darker green for question background */
  user-select: none;
}

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

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.5;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 10px 15px 40px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-terms-conditions__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-terms-conditions__hero-content,
  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-terms-conditions h3 {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .page-terms-conditions p,
  .page-terms-conditions__list li,
  .page-terms-conditions__faq-question,
  .page-terms-conditions__faq-answer {
    font-size: 0.95rem;
  }
  
  /* Images mobile responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video (if any) mobile responsive - not used for this page, but included for completeness */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-terms-conditions__video-section {
    padding-top: 10px !important; /* Small top padding */
  }
}

/* Ensure no text over hero image */
.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center;
}
.page-terms-conditions__hero-image-wrapper {
  /* This block contains the main image */
  position: relative; /* Ensure z-index context */
  z-index: 0; /* Keep image at base layer */
}
.page-terms-conditions__hero-content {
  /* This block contains h1, p, cta */
  position: relative; /* Ensure z-index context */
  z-index: 1; /* Ensure text is above image *if* they overlap, but they shouldn't with flex-direction: column */
  margin-top: -50px; /* Example: Pull content up slightly if needed, but not to overlap */
  /* NO absolute positioning that would make it overlap the image */
}