.page-terms-conditions {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* Inherited from body, ensuring consistency */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assumes shared.css sets padding-top on body */
  background-color: #017439; /* Brand color for hero background */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  color: #ffffff;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Bright yellow for emphasis, ensuring contrast on dark background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-50px); /* Lift slightly over hero */
  position: relative;
  z-index: 3;
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand green for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-terms-conditions__cta-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFFFF; /* White text for contrast on red */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-terms-conditions__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand green text */
  border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
}

.page-terms-conditions__faq-section {
  background-color: #1a1a2e; /* Dark background for FAQ */
  padding: 80px 20px;
  color: #ffffff;
  margin-top: -50px; /* Pull up to meet content area */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  color: #FFFF00; /* Yellow for FAQ title on dark background */
  border-bottom-color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Brand green for question background */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #005a2d;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-terms-conditions__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* General image and container responsive styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__text-block {
    font-size: 1em;
  }
  .page-terms-conditions__content-area {
    padding: 40px 15px;
  }
  .page-terms-conditions__faq-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-terms-conditions__hero-section {
    height: 450px;
    padding-top: 0; /* Ensures no double padding if body has it */
  }
  .page-terms-conditions__hero-content {
    padding: 15px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 其他内容模块 */
  .page-terms-conditions__content-area {
    padding: 30px 10px;
    transform: translateY(-30px);
  }
  .page-terms-conditions__container {
    padding: 0 10px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-terms-conditions__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  /* 按钮与按钮容器 */
  .page-terms-conditions__cta-container {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 10px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ 区域 */
  .page-terms-conditions__faq-section {
    padding: 40px 10px;
    margin-top: -30px;
  }
  .page-terms-conditions__faq-section .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-terms-conditions__faq-item {
    margin-bottom: 10px;
  }
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 1.3em;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 10px 20px;
  }

  /* 通用图片与容器 */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  /* LOGO 轮播区域 - 排除通用规则，保持固定尺寸 */
  /* Note: No logo carousel in this page, but if there were, it would be handled here. */
  /* Example if there was a logo item: */
  /* .page-terms-conditions__logo-item { */
  /*   width: 80px !important; */
  /*   height: 80px !important; */
  /*   max-width: 80px !important; */
  /*   box-sizing: border-box; */
  /*   padding: 0; */
  /* } */
}