/* 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: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-terms-conditions__hero-section .page-terms-conditions__container {
  position: relative;
  z-index: 1;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom color for prominent title */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Content Area */
.page-terms-conditions__content-area {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content area */
  color: #ffffff; /* Light text for dark background */
}

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

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  color: #FFFFFF; /* White for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-terms-conditions__list-item strong {
  color: #FFFF00; /* Highlight important terms */
}

.page-terms-conditions__content-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);
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
  text-align: center;
  background-color: #017439; /* Primary brand color */
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 50px;
  color: #ffffff;
}

.page-terms-conditions__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-terms-conditions__faq-item {
  background-color: #2a2a2a; /* Slightly lighter dark for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for question header */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 20px;
  background-color: #2a2a2a; /* Lighter dark for answer body */
  color: #ffffff;
  font-size: 1.1em;
}

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

.page-terms-conditions a {
  color: #FFFF00; /* Custom link color */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #ffd700;
}

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

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

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

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

  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 400px;
  }

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

  .page-terms-conditions__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-terms-conditions__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__content-area {
    padding: 40px 15px;
  }

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item,
  .page-terms-conditions__faq-answer p {
    font-size: 1em;
  }

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

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

  /* Containers for images to prevent overflow */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-terms-conditions__cta-section {
    padding: 30px 15px;
    margin-top: 40px;
  }

  .page-terms-conditions__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }

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

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

  .page-terms-conditions__hero-section {
    min-height: 350px;
  }
}