.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  background-color: #E53935; /* Primary color as a fallback/accent */
  overflow: hidden; /* Ensure no image overflow */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, crop if needed */
  object-position: center;
}

.page-terms-conditions__hero-content {
  position: relative; /* Relative to hero-section, not absolute over image */
  z-index: 2;
  text-align: center;
  padding: 30px 20px 50px;
  max-width: 900px;
  width: 100%;
  color: #ffffff; /* White text on dark background */
}

.page-terms-conditions__main-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 60ch; /* Limit title length for readability */
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 70ch; /* Limit description length */
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Primary color */
  border: 2px solid #E53935;
}

.page-terms-conditions__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  border-color: #E53935;
  transform: translateY(-2px);
}

/* Content Area */
.page-terms-conditions__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-terms-conditions__grey-bg {
  background-color: #F5F7FA; /* Background */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935; /* Primary color */
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #333333; /* Text Main */
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #333333; /* Text Main */
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-terms-conditions__image--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 25px;
  max-width: 50%;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 25px;
  max-width: 50%;
}

.page-terms-conditions__section:after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}

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: #333333; /* Text Main */
}

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: #f0f0f0;
}

.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Text Main */
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Text Main */
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background-color: #E53935; /* Primary color */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-terms-conditions__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.3;
}

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

.page-terms-conditions__btn-large {
  padding: 16px 32px;
  font-size: 1.15em;
  min-width: 250px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    max-width: 100%;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-terms-conditions {
    font-size: 15px;
  }

  /* Hero Section */
  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 30px;
  }
  .page-terms-conditions__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }
  .page-terms-conditions__hero-image {
    object-fit: contain !important; /* Ensure image fits well */
    object-position: center !important;
  }
  .page-terms-conditions__hero-content {
    padding: 20px 15px 30px;
  }
  .page-terms-conditions__main-title {
    font-size: 2em !important;
    max-width: 100% !important;
  }
  .page-terms-conditions__description {
    font-size: 1em !important;
    max-width: 100% !important;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Content Area */
  .page-terms-conditions__section {
    padding: 30px 0;
    margin-bottom: 15px;
  }
  .page-terms-conditions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px;
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
    box-sizing: border-box !important;
  }
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  /* FAQ Section */
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px !important;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 1em !important;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    margin-left: 10px !important;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px !important;
  }

  /* CTA Section */
  .page-terms-conditions__cta-section {
    padding: 40px 15px;
  }
  .page-terms-conditions__cta-title {
    font-size: 1.8em !important;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em !important;
  }
  .page-terms-conditions__btn-large {
    min-width: unset !important;
    width: 100% !important;
    padding: 14px 25px !important;
  }
}

/* Clear floats for image alignment */
.page-terms-conditions__content-area::after {
  content: "";
  display: table;
  clear: both;
}