/* style/terms-conditions.css */

/* Base styles for the Terms and Conditions page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
  padding-bottom: 60px; /* Space below content */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-terms-conditions__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-terms-conditions__hero-content {
  position: relative; /* Ensure content is above any potential background layers */
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__subtitle {
  font-size: clamp(1em, 1.5vw, 1.3em);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  padding-top: 20px;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-terms-conditions__card:hover {
  transform: translateY(-5px);
}

.page-terms-conditions__card-title {
  font-size: 1.6em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__card p {
  color: #A7D9B8; /* Text Secondary */
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #11271B; /* Card BG, or a distinct color for CTA */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-terms-conditions__btn-secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-terms-conditions__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border-color: #F2FFF6; /* Text Main */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0 80px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-terms-conditions__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-terms-conditions__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
  border-color: #57E38D; /* Glow */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  font-weight: 700;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  color: #F2C14E; /* Gold */
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  /* For details, max-height and overflow hidden are not needed as browser handles it */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
  padding-top: 10px;
}

/* Specific link styling in content */
.page-terms-conditions__text-block a,
.page-terms-conditions__card p a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__text-block a:hover,
.page-terms-conditions__card p a:hover {
  color: #F2C14E; /* Gold */
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__container {
    padding: 0 15px !important; /* Mobile padding */
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Hero Section Adjustments */
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
    min-height: unset;
  }

  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-terms-conditions__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Content Section Adjustments */
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }

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

  .page-terms-conditions__text-block,
  .page-terms-conditions__card p {
    font-size: 1em;
  }

  .page-terms-conditions__card {
    padding: 20px;
  }

  .page-terms-conditions__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  /* CTA Section Adjustments */
  .page-terms-conditions__cta-section {
    padding: 50px 0;
  }

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

  .page-terms-conditions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

  /* FAQ Section Adjustments */
  .page-terms-conditions__faq-section {
    padding: 40px 0 60px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-terms-conditions__dark-bg {
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

.page-terms-conditions__medium-bg {
  color: #F2FFF6; /* Text Main */
  background: #11271B; /* Card BG */
}

/* Fallback for general text in case of specific background issues */
.page-terms-conditions p,
.page-terms-conditions li,
.page-terms-conditions span {
  /* Ensure default text color is readable on body background */
  color: #F2FFF6; /* Text Main */
}

/* Specific overrides for contrast safety, if needed */
.page-terms-conditions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-terms-conditions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}