:root {
  --primary-color: #0A2463; /* Deep Blue */
  --secondary-color: #E5B80B; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a; /* Body background from shared.css */
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content area */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  min-height: 100vh; /* Ensure content pushes footer down */
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Brand colors */
  color: var(--text-light);
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-terms-conditions__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text on gold */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-terms-conditions__cta-button:hover {
  background: #ffcc00; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General section styles */
.page-terms-conditions__section {
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.page-terms-conditions__content-area {
  background-color: var(--bg-dark); /* Content area on dark body, maintain dark bg */
  color: var(--text-light); /* Light text */
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: var(--secondary-color); /* Gold titles */
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: var(--secondary-color); /* Gold subtitles */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: var(--text-light); /* Ensure paragraph text is light */
}

.page-terms-conditions a {
  color: var(--secondary-color); /* Gold links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #ffcc00; /* Lighter gold on hover */
  text-decoration: underline;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light); /* Ensure list items are light */
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
  color: var(--text-light); /* Ensure list items are light */
}

/* Image with text block */
.page-terms-conditions__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__image-text-block .page-terms-conditions__image--left {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.page-terms-conditions__image-text-block .page-terms-conditions__image--right {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  order: 2; /* Move image to right on desktop */
}

.page-terms-conditions__image-text-block .page-terms-conditions__text-content {
  flex: 2;
  min-width: 300px;
}

.page-terms-conditions__image-text-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-container {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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; /* Adjusted padding for dark theme */
  opacity: 0;
  color: var(--text-light); /* Ensure text is light */
  background: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
}

.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;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color); /* Dark blue for question background */
  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;
  color: var(--text-light); /* Light text for question */
}

.page-terms-conditions__faq-question:hover {
  background: #1a3a7a; /* Slightly lighter blue on hover */
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light); /* Light text for question title */
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold 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: #ffcc00; /* Lighter gold when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* CTA Section */
.page-terms-conditions__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--primary-color); /* Dark blue background */
  color: var(--text-light);
  margin-top: 40px;
}

.page-terms-conditions__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: var(--secondary-color); /* Gold title */
  margin-bottom: 20px;
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text on gold */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  background: #ffcc00; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-terms-conditions__main-title {
    font-size: 2em;
  }

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

  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-terms-conditions__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-terms-conditions__image-text-block .page-terms-conditions__image--right {
    order: unset; /* Reset order for mobile */
  }

  /* Image responsive rules */
  .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__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ mobile styles */
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 15px;
    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;
  }

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

  .page-terms-conditions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}