/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure this matches body background */
}

/* Fixed navigation bar spacing */
.page-terms-conditions__main-content {
  padding-top: 120px; /* Desktop */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0056b3, #003d80); /* Darker blue gradient */
  color: #ffffff;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffc107; /* Gold for prominence */
  line-height: 1.2;
}

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

/* Container for main content */
.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Content Blocks */
.page-terms-conditions__content-block {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #ffc107; /* Gold */
  margin-bottom: 25px;
  border-bottom: 3px solid #0056b3;
  padding-bottom: 10px;
  font-weight: 600;
}

.page-terms-conditions__subsection-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-terms-conditions ul li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

/* Images */
.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #0056b3; /* Blue border */
}

.page-terms-conditions__image--large {
  max-width: 90%;
}

.page-terms-conditions__image--medium {
  max-width: 70%;
}

/* Buttons */
.page-terms-conditions__btn-primary {
  display: inline-block;
  background: #ffc107;
  color: #000000; /* Black text for gold background */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-terms-conditions__btn-primary--center {
  display: block;
  margin: 30px auto;
  text-align: center;
}

/* Darker section for emphasis */
.page-terms-conditions__dark-section {
  background: #003d80; /* Darker blue */
  color: #ffffff;
  padding: 40px;
  text-align: center;
  border: 1px solid #0056b3;
}

.page-terms-conditions__dark-section .page-terms-conditions__section-title {
  color: #ffc107;
  border-bottom-color: #ffc107;
}

.page-terms-conditions__dark-section p {
  font-size: 1.15em;
  margin-bottom: 25px;
}

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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0056b3; /* Blue background for question */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-terms-conditions__faq-question:hover {
  background: #003d80;
}

.page-terms-conditions__faq-question:active {
  background: #002a5c;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff;
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__subsection-title {
    font-size: 1.5em;
  }
  .page-terms-conditions p {
    font-size: 1em;
  }
  .page-terms-conditions ul li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__main-content {
    padding-top: 100px !important; /* Mobile */
  }
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__container {
    padding: 20px 15px;
  }
  .page-terms-conditions__content-block {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-terms-conditions__subsection-title {
    font-size: 1.3em;
    margin-top: 25px;
  }
  .page-terms-conditions__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-terms-conditions__image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__image--large, .page-terms-conditions__image--medium {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-terms-conditions__dark-section {
    padding: 30px 15px;
  }
  
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all content containers are responsive */
  .page-terms-conditions__container,
  .page-terms-conditions__content-block,
  .page-terms-conditions__dark-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-terms-conditions__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Contrast Fixes - Ensure text is readable on dark backgrounds */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep dark background, so text must be light */
}

/* Specific elements to ensure contrast if their background changes */
.page-terms-conditions__content-area p,
.page-terms-conditions__content-area li {
  color: #e0e0e0; /* Slightly off-white for readability on dark */
}

.page-terms-conditions__btn-primary {
  background: #ffc107;
  color: #000000; /* Black text on gold button */
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e0a800;
  color: #000000;
}