/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 0; /* shared.css already sets body padding-top for header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A2B3C 0%, #0a0a0a 100%);
  text-align: center;
  color: #ffffff;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-terms-conditions__text-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__heading {
  font-size: 2.2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #1A2B3C;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  font-size: 1.6em;
  color: #f0f0f0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #cccccc;
}

.page-terms-conditions ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  color: #cccccc;
  font-size: 1.05em;
}

.page-terms-conditions a {
  color: #FFD700;
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #ffffff;
}

.page-terms-conditions img {
  max-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; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Buttons */
.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background-color: #FFD700;
  color: #1A2B3C;
  border: 2px solid #FFD700;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  max-width: 900px;
  margin: 60px auto 0 auto;
  background-color: #1A2B3C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__faq-section .page-terms-conditions__heading {
  color: #FFD700;
  border-bottom-color: #0a0a0a;
  text-align: center;
  margin-bottom: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a3d50; /* Darker background for FAQ items */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A2B3C;
  border: 1px solid #0a0a0a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #2a3d50;
  border-color: #FFD700;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #2a3d50;
  border-radius: 0 0 8px 8px;
}

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

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

/* Responsive Styles */
@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__heading {
    font-size: 2em;
  }

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

  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-terms-conditions__hero-section {
    padding-top: 0 !important; /* shared.css already handles body padding */
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-title {
    font-size: 2.2em;
    padding-top: 40px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-terms-conditions__content-section {
    padding: 40px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-terms-conditions__text-content {
    padding: 0 15px;
  }

  .page-terms-conditions__heading {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

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

  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 0.95em;
  }

  /* 按钮与按钮容器 */
  .page-terms-conditions__button,
  .page-terms-conditions__btn-primary {
    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;
    margin-top: 20px;
  }

  /* 其他内容模块 - FAQ */
  .page-terms-conditions__faq-section {
    margin-top: 40px;
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__faq-section .page-terms-conditions__heading {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
}