/* style/terms-conditions.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0d0d1a;
  --background-light: #f8f9fa;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body, but explicitly set for clarity */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-terms-conditions__container {
    padding: 0 15px;
  }
}

.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a2b5a 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 0;
    margin-bottom: 30px;
  }
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
}

.page-terms-conditions__hero-subtitle {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
}

.page-terms-conditions__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__hero-cta-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-cta-button {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 auto;
  }
}

.page-terms-conditions__content-section {
  padding: 60px 0;
  background: var(--background-dark);
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 12px;
  }
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-terms-conditions__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
}

@media (max-width: 768px) {
  .page-terms-conditions__list {
    padding-left: 15px;
  }
  .page-terms-conditions__list-item {
    font-size: 1em;
    margin-bottom: 8px;
  }
}

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

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

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

@media (max-width: 768px) {
  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }
  .page-terms-conditions__image--medium {
    width: 100% !important;
  }
}

.page-terms-conditions__contact-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__contact-link:hover {
  color: #e0a800;
}

.page-terms-conditions__cta-footer {
  background: linear-gradient(90deg, #0056b3, var(--primary-color));
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .page-terms-conditions__cta-footer {
    padding: 30px;
    margin-top: 40px;
  }
}

.page-terms-conditions__cta-text {
  font-size: 1.5em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .page-terms-conditions__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
}

.page-terms-conditions__cta-button--large {
  display: inline-block;
  padding: 18px 50px;
  background: var(--secondary-color);
  color: var(--text-color-light-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button--large:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-terms-conditions__cta-button--large {
    width: 100% !important;
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
  margin-top: 80px;
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .page-terms-conditions__faq-section {
    margin-top: 50px;
    padding-bottom: 40px;
  }
}

.page-terms-conditions__faq-main-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-terms-conditions__faq-main-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
}

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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 8px;
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark-bg);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-left: 1px solid var(--border-color-dark-theme);
  border-right: 1px solid var(--border-color-dark-theme);
  border-bottom: 1px solid var(--border-color-dark-theme);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-terms-conditions__faq-answer p {
  margin: 0;
  color: var(--text-color-dark-bg);
  font-size: 1em;
}

/* Mobile Specific Adjustments for FAQ */
@media (max-width: 768px) {
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    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: 22px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Ensure all images are responsive */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers are responsive */
.page-terms-conditions__section,
.page-terms-conditions__card,
.page-terms-conditions__container,
.page-terms-conditions__cta-footer,
.page-terms-conditions__faq-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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-footer,
  .page-terms-conditions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-terms-conditions__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}