/* 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: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background from custom palette */
}

/* Fixed header spacing - DO NOT apply padding-top: var(--header-offset) here. It's handled by body in shared.css. */
/* Only apply a small top padding to the first section to ensure content is slightly below the header. */
.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: 10px; /* Small top padding for the first section */
  background: #0A0A0A; /* Match body background */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum height for hero image */
  max-height: 500px; /* Limit hero image height */
  filter: none; /* No CSS filter */
}

.page-terms-conditions__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  margin: 0 auto;
}

.page-terms-conditions__hero-text-container {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(17, 17, 17, 0.7); /* Card BG with transparency for readability */
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 3.5vw, 2.5em); /* Use clamp for H1 font size */
  color: #F2C14E; /* Primary color for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

.page-terms-conditions__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-terms-conditions__section:last-of-type {
  border-bottom: none;
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-terms-conditions__text-block {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #FFF6D6; /* Text Main */
}

.page-terms-conditions ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #FFF6D6; /* Text Main */
}

.page-terms-conditions li {
  margin-bottom: 8px;
  color: #FFF6D6; /* Text Main */
}

/* CTA Section */
.page-terms-conditions__cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Gradient background */
}

.page-terms-conditions__cta-container {
  max-width: 800px;
}

.page-terms-conditions__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #333333; /* Dark text for contrast on light gradient background */
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-terms-conditions__faq-list {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly darker for question header */
  color: #FFD36B; /* Auxiliary color for question */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #222222;
}

.page-terms-conditions__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFD36B; /* Auxiliary color */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Primary color for toggle */
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Plus to X rotation */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding is 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px; /* Padding when active */
}

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

.page-terms-conditions__faq-image {
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  filter: none; /* No CSS filter */
}

/* Global image styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filters are applied */
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); /* Adjust H1 for smaller screens */
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
  }

  .page-terms-conditions__section {
    padding: 40px 0;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
  }

  .page-terms-conditions__text-block {
    padding: 20px;
  }

  .page-terms-conditions__cta-section {
    padding: 60px 20px;
  }

  .page-terms-conditions__cta-text {
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure content containers don't overflow */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-content-wrapper,
  .page-terms-conditions__hero-text-container,
  .page-terms-conditions__cta-container,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__faq-item,
  .page-terms-conditions__faq-question,
  .page-terms-conditions__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .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;
  }

  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}