/* style/terms-conditions.css */

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

/* Section spacing and container */
.page-terms-conditions__section {
  padding: 60px 0;
  text-align: center;
}

.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;
  padding: 80px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0A4B2C; /* Deep Green background */
  color: #F2FFF6;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

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

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* Section Titles */
.page-terms-conditions__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: bold;
  margin-bottom: 30px;
  color: #F2C14E; /* Gold */
}

.page-terms-conditions__sub-title {
  font-size: clamp(1.4em, 3vw, 1.8em);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2AD16F; /* Lighter Green */
}

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

/* Lists */
.page-terms-conditions__list {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
}

/* Images within content */
.page-terms-conditions__image-content {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Link Buttons */
.page-terms-conditions__link-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: transparent;
  border: 2px solid #2AD16F;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions__link-button:hover {
  background-color: #2AD16F;
  color: #ffffff;
}

/* Background colors for sections */
.page-terms-conditions__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-terms-conditions__light-bg {
  background-color: #11271B; /* Card B G */
  color: #F2FFF6;
}

.page-terms-conditions__hero-section.page-terms-conditions__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-terms-conditions__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
  text-align: left;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-terms-conditions__faq-item summary {
  list-style: none;
}

.page-terms-conditions__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-terms-conditions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
}

/* CTA Section at the bottom */
.page-terms-conditions__cta-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-terms-conditions__cta-content {
  max-width: 900px;
}

.page-terms-conditions__cta-title {
  font-size: clamp(2em, 5vw, 3em);
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #A7D9B8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__section {
    padding: 40px 0;
  }

  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: 10px !important;
  }

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

  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }

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

  .page-terms-conditions__text-block, .page-terms-conditions__list-item, .page-terms-conditions__description {
    font-size: 0.95em;
  }

  .page-terms-conditions__cta-button,
  .page-terms-conditions__link-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 10px;
    font-size: 1em;
  }

  /* Image responsive rules */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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