/* style/terms-conditions.css */

/* Base styles for the terms-conditions page, respecting shared.css body padding */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main); /* Using custom text color */
  background-color: var(--Background); /* Using custom background color */
}

.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;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--Card-B-G); /* Using custom background color */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: var(--Text-Main);
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--Glow);
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: var(--Text-Secondary);
}

/* General Section Styles */
.page-terms-conditions__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--Divider); /* Using custom border color */
  background-color: var(--Background);
}

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

.page-terms-conditions__heading {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--Glow); /* Using custom glow color */
  margin-bottom: 30px;
  text-align: center;
}

.page-terms-conditions__sub-heading {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--Text-Main); /* Using custom main text color */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions__content-block {
  background-color: var(--Card-B-G); /* Using custom card background color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--Text-Secondary); /* Using custom secondary text color */
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: var(--Text-Secondary);
}

.page-terms-conditions__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--Text-Secondary);
}

.page-terms-conditions__list li {
  margin-bottom: 8px;
}

.page-terms-conditions a {
  color: var(--Gold); /* Using custom gold color for links */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: var(--Glow);
}

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

.page-terms-conditions__image--left {
  float: left;
  margin-right: 30px;
  width: 400px; /* Example display width */
  height: 300px; /* Example display height */
  object-fit: cover;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 30px;
  width: 400px; /* Example display width */
  height: 300px; /* Example display height */
  object-fit: cover;
}

/* Clearfix for floated images */
.page-terms-conditions__content-block::after {
  content: "";
  display: table;
  clear: both;
}

/* Buttons */
.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  min-width: 200px; /* Ensure button is not too small */
}

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

/* CTA Section */
.page-terms-conditions__cta-section {
  background-color: var(--Deep-Green); /* Using custom deep green color */
  padding: 80px 0;
  text-align: center;
}

.page-terms-conditions__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-terms-conditions__cta-title {
  font-size: 2.8em;
  color: var(--Gold); /* Using custom gold color */
  margin-bottom: 15px;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  color: var(--Text-Main);
  max-width: 800px;
  margin-bottom: 30px;
}

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

/* FAQ Section */
.page-terms-conditions__faq {
  padding: 60px 0;
  background-color: var(--Background);
}

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

.page-terms-conditions__faq-item {
  background-color: var(--Card-B-G); /* Using custom card background color */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--Text-Main); /* Using custom main text color */
  background-color: var(--Deep-Green); /* Using custom deep green color */
  border-bottom: 1px solid var(--Divider);
  list-style: none;
}

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--Glow);
}

.page-terms-conditions__faq-item[open] > summary .page-terms-conditions__faq-toggle {
  content: '−';
}

.page-terms-conditions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--Text-Secondary); /* Using custom secondary text color */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-image {
    max-height: 500px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-terms-conditions__heading {
    font-size: 2em;
  }

  .page-terms-conditions__sub-heading {
    font-size: 1.5em;
  }

  .page-terms-conditions__content-block {
    padding: 25px;
  }

  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__container,
  .page-terms-conditions__section,
  .page-terms-conditions__content-block,
  .page-terms-conditions__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-terms-conditions__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

  .page-terms-conditions__hero-description {
    font-size: 1em;
  }

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

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

  .page-terms-conditions__sub-heading {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__list {
    margin-left: 15px;
  }

  /* Images responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
  }
  
  /* Buttons responsiveness */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__cta-button {
    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-section {
    padding: 50px 15px;
  }

  .page-terms-conditions__cta-title {
    font-size: 2em;
  }

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

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

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