/* style/terms-conditions.css */
/* Base styles for the Terms and Conditions page */
.page-terms-conditions {
  background-color: #0a0a0a; /* Matches body background */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #1A202C; /* Primary brand color for hero background */
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Auxiliary brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e0b800;
  color: #0a0a0a;
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make background image subtle */
}

/* General Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-terms-conditions__section-intro {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 15px;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-terms-conditions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto;
}

/* Chapters */
.page-terms-conditions__chapter {
  background-color: #1A202C; /* Dark background for chapters */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__chapter--dark-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-terms-conditions__chapter-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 15px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__chapter-content p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Ensure text is light on dark background */
}

.page-terms-conditions__chapter-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions__chapter-content li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

/* Images within content */
.page-terms-conditions__image {
  width: 100%;
  max-width: 400px; /* Example max-width, ensure >= 200px */
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block; /* Center images */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
}

/* Secondary button style */
.page-terms-conditions__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #FFD700;
  margin-top: 20px;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #1A202C;
  padding: 50px 20px;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-terms-conditions__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  text-align: left;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  text-align: left;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Clear floats for images */
.page-terms-conditions__chapter-content::after {
  content: "";
  display: table;
  clear: both;
}

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

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

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

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

  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    flex-direction: column;
    text-align: center;
    min-height: 400px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

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

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

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

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

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

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

  .page-terms-conditions__chapter {
    padding: 20px;
    margin-bottom: 20px;
  }

  /* Images responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}