/* style/terms-conditions.css */

:root {
  --primary-color: #1A73E8;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-light: #f1f3f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-terms-conditions {
  color: var(--text-color-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Ensure this is not visible if content sections have their own background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__content-section {
  background-color: var(--card-bg); /* White background for main content area */
  color: var(--text-color-dark); /* Dark text on white background */
  padding: 40px 20px;
  padding-top: 120px; /* Desktop padding to clear fixed header */
}

.page-terms-conditions__content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__main-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-terms-conditions__introduction-text {
  font-size: 17px;
  margin-bottom: 30px;
  line-height: 1.7;
  text-align: justify;
}

.page-terms-conditions__section-heading {
  font-size: 28px;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.page-terms-conditions h3 {
  font-size: 22px;
  color: var(--text-color-dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: justify;
}

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

.page-terms-conditions li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-terms-conditions a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #0d5bb5;
  text-decoration: underline;
}

.page-terms-conditions__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-terms-conditions__cta-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #0d5bb5);
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-link:hover {
  background: linear-gradient(135deg, #0d5bb5, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: var(--bg-light);
  color: var(--text-color-dark);
  padding: 60px 20px;
}

.page-terms-conditions__faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__faq-heading {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on entire question div */
  color: var(--text-color-dark);
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: var(--primary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar, or just change text */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions__main-title {
    font-size: 30px;
  }
  .page-terms-conditions__section-heading {
    font-size: 24px;
  }
  .page-terms-conditions h3 {
    font-size: 20px;
  }
  .page-terms-conditions__faq-heading {
    font-size: 28px;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__content-section {
    padding: 20px 15px;
    padding-top: 100px !important; /* Mobile padding to clear fixed header */
  }
  .page-terms-conditions__faq-section {
    padding: 30px 15px;
  }
  .page-terms-conditions__main-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__introduction-text {
    font-size: 15px;
  }
  .page-terms-conditions__section-heading {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-terms-conditions h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 15px;
  }
  .page-terms-conditions__faq-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 15px;
    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;
  }
  /* Universal image responsive styles */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__content-container,
  .page-terms-conditions__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure contrast for specific elements if needed */
.page-terms-conditions__dark-bg {
  color: var(--text-color-light); /* Deep dark backgrounds */
  background: #1A73E8; 
}
.page-terms-conditions__light-bg {
  color: var(--text-color-dark); /* Light backgrounds */
  background: #ffffff;
}
.page-terms-conditions__medium-bg {
  color: #000000; /* Medium backgrounds, default dark text */
  background: #FFD700;
}