.page-terms-conditions {
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, expected to be dark */
}

.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, #1A2E4E, #3A5F8E); /* Darker gradient for hero */
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 90px; /* Adjusted for fixed header - 80px base + 10px safety */
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-terms-conditions__hero-subtitle {
  font-size: 1.5em;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-terms-conditions__content-section {
  padding: 40px 20px;
  margin: 0 auto;
  background-color: var(--dark-bg-1); /* Ensure consistency with body background */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FFD700; /* Gold for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.page-terms-conditions__section-title--faq {
  text-align: center;
  margin-bottom: 40px;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0; /* Light grey for paragraph text */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  color: #e0e0e0; /* Light grey for list text */
}

.page-terms-conditions__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A2E4E; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2E4E;
}

/* Image styles */
.page-terms-conditions__image-wrapper {
  margin: 30px auto;
  max-width: 800px; /* Constrain image width for better text flow */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background-color: #12233f; /* Slightly lighter dark background for FAQ section */
  margin-top: 40px;
}

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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1A2E4E; /* Dark blue background for FAQ item */
  color: #ffffff; /* White text for FAQ item */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A2E4E;
  border: 1px solid #3A5F8E; /* Darker blue border */
  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: #2A4F7E; /* Lighter dark blue on hover */
  border-color: #4A6F9E;
}

.page-terms-conditions__faq-question:active {
  background: #3A5F8E;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question title */
  pointer-events: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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: 32px;
  height: 32px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign effect if using + */
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #12233f; /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-terms-conditions__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0; /* Light grey for answer text */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 3em;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 1.3em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__text-block,
  .page-terms-conditions__list-item,
  .page-terms-conditions__faq-answer p {
    font-size: 1em;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    margin-bottom: 30px;
    padding-top: 70px; /* Adjusted for mobile fixed header - 60px base + 10px safety */
  }

  .page-terms-conditions__hero-title {
    font-size: 2.5em;
  }

  .page-terms-conditions__hero-subtitle {
    font-size: 1.1em;
  }

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

  .page-terms-conditions__container {
    padding-left: 0;
    padding-right: 0;
  }

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

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

  .page-terms-conditions__list {
    margin-left: 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 30px;
    padding: 0 15px; /* Add padding to button container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__image-wrapper {
    margin: 20px auto;
    max-width: 100%; /* Full width on mobile */
  }
  .page-terms-conditions__content-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-terms-conditions__faq-section {
    padding: 40px 15px;
    margin-top: 30px;
  }

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

  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-terms-conditions__faq-answer p {
    font-size: 0.95em;
  }

  /* Responsive images for all containers */
  .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,
  .page-terms-conditions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific padding for content sections if needed */
  .page-terms-conditions__content-section .page-terms-conditions__container,
  .page-terms-conditions__faq-section .page-terms-conditions__container {
    padding-left: 0;
    padding-right: 0;
  }
}