/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.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 */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-terms-conditions__hero-section {
  position: relative;
  background-color: #1a1a2e; /* Dark background for hero to ensure contrast with white text */
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to allow text to stand out */
  z-index: 0;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a2e; /* Keep the dark background consistent */
  color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__section {
  margin-bottom: 50px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand primary color for main titles */
  margin-bottom: 25px;
  text-align: center;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph a {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: none;
}

.page-terms-conditions__paragraph a:hover {
  text-decoration: underline;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 30px;
  margin-left: 0;
  width: 50%; /* Adjust width for text wrapping */
  height: auto;
  object-fit: cover;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 30px;
  margin-right: 0;
  width: 50%; /* Adjust width for text wrapping */
  height: auto;
  object-fit: cover;
}

.page-terms-conditions__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  height: auto;
  object-fit: cover;
}

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

/* Buttons */
.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker shade */
  transform: translateY(-2px);
}

.page-terms-conditions__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly different background for FAQ */
  border-radius: 8px;
  padding: 30px 20px;
}

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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-title {
  font-size: 1.1em;
  color: #ffffff;
  margin: 0;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross (minus sign) */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

/* IMPORTANT: Ensure FAQ answer expands */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

/* Footer (placeholder, but ensure BEM compliance if needed) */
.page-terms-conditions__footer-text {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  font-size: 0.9em;
  color: #888;
}

/* Responsive Design */
@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: 1.8em;
  }
}