.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body padding-top handles header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1200px;
}

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

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 15px;
}

.page-terms-conditions__main-title {
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

.page-terms-conditions__intro-description {
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  background: #FF5A4F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__content-section {
  padding: 60px 20px;
  background: #F5F7FA; /* Background color from custom palette */
  color: #333333; /* Text Main color from custom palette */
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  color: #E53935; /* Primary color for titles */
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: left;
  padding-top: 20px;
}

.page-terms-conditions__section-title--light {
  color: #ffffff;
}

.page-terms-conditions__text-block {
  margin-bottom: 40px;
  line-height: 1.7;
  font-size: 16px;
}

.page-terms-conditions__text-block h3 {
  color: #E53935;
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
}

.page-terms-conditions__text-block ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-terms-conditions__text-block a {
  color: #E53935;
  text-decoration: underline;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background: #E53935; /* Primary color for dark background */
  color: #ffffff;
}

.page-terms-conditions__faq-list {
  margin-top: 40px;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #FF5A4F; /* Using auxiliary color for border */
  overflow: hidden;
  background: #FF5A4F; /* Using auxiliary color for FAQ item background */
}

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #FF5A4F;
  filter: brightness(1.1);
}

.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #ffffff; /* White background for answer */
  color: #333333; /* Dark text for answer */
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-image-wrapper img {
    border-radius: 4px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-terms-conditions__intro-description {
    font-size: 16px;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    padding: 40px 15px;
  }

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

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

  .page-terms-conditions__text-block h3 {
    font-size: 20px;
    margin-top: 20px;
  }

  .page-terms-conditions__text-block p,
  .page-terms-conditions__text-block ul,
  .page-terms-conditions__text-block li {
    font-size: 15px;
  }

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
  }

  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px;
  }

  .page-terms-conditions__faq-qtext {
    font-size: 16px;
  }

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