/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-terms-conditions__dark-bg {
  background-color: #121212; /* Inherit from body or explicitly set for sections */
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  padding: 100px 0 60px; /* Adjust padding for hero section */
  text-align: center;
  background-color: #017439; /* Using primary brand color for hero background */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Area */
.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: #121212; /* Ensure dark background for main content */
}

.page-terms-conditions__section-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439; /* Primary brand color for section titles */
}

.page-terms-conditions__section-title--dark-text {
  color: #333333; /* Dark text for titles on light backgrounds */
}

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

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

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

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

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #000000; /* Adjusted to black for WCAG AA contrast on #C30808 background */
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e00e0e;
  border-color: #e00e0e;
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

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

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

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439; /* Primary brand color */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #f9f9f9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

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

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

  .page-terms-conditions__hero-section {
    padding: 80px 0 40px;
  }

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

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

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

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-terms-conditions__hero-section .page-terms-conditions__btn-primary {
    margin-bottom: 0;
  }

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

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

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

/* Ensure no image filter */
.page-terms-conditions img {
  filter: none; /* Ensure no CSS filter is applied to images */
}

/* Contrast Fixes (if needed, but already handled) */
.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;
}