/* style/terms-conditions.css */

/* General page styling */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* Light background for the main content area */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  gap: 30px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, #E53935, #C91F17); /* Gradient background for hero */
  color: #ffffff; /* White text for dark hero background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFF5E1; /* Use custom Text Main color for H1 */
}

.page-terms-conditions__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-terms-conditions__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
}

.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-terms-conditions__dark-bg {
  background-color: #C91F17; /* Brand primary color for dark background */
  color: #ffffff; /* White text for dark background */
  padding: 40px;
  border-radius: 10px;
}

.page-terms-conditions__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #C91F17; /* Brand primary color for section titles */
  text-align: center;
}

.page-terms-conditions__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935; /* Brand secondary color for sub-titles */
}

.page-terms-conditions__paragraph {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
}

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

/* CTA Block */
.page-terms-conditions__cta-block {
  text-align: center;
  margin-top: 60px;
}

.page-terms-conditions__cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFF5E1; /* Custom Text Main color */
}

.page-terms-conditions__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #333333; /* Contrasting dark text for gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #C91F17; /* Brand primary color */
  border: 2px solid #C91F17;
  margin-left: 20px; /* Example for multiple buttons */
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #C91F17;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #f0f0f0; /* Slightly different light background for FAQ */
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color is dark for light background */
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Slightly lighter text for answer */
}
.page-terms-conditions__faq-answer p {
  margin: 0; /* Remove default paragraph margin within answer */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 40px;
  }
  .page-terms-conditions__section-title {
    font-size: 32px;
  }
  .page-terms-conditions__sub-title {
    font-size: 22px;
  }
  .page-terms-conditions__cta-title {
    font-size: 28px;
  }
  .page-terms-conditions__container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments for content containers */
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    gap: 20px;
    padding-bottom: 30px;
  }

  .page-terms-conditions__main-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Sections and Titles */
  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    padding: 40px 0;
  }

  .page-terms-conditions__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list {
    font-size: 15px;
    line-height: 1.6;
  }

  /* CTA Block */
  .page-terms-conditions__cta-block {
    margin-top: 40px;
    padding: 30px 20px;
  }

  .page-terms-conditions__cta-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Full width for mobile buttons */
    margin-left: 0;
    margin-bottom: 15px; /* Add vertical spacing */
  }
  .page-terms-conditions__btn-secondary {
    margin-top: 10px; /* Space between primary and secondary if stacked */
  }

  /* FAQ */
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question { padding: 15px; }
  .page-terms-conditions__faq-qtext { font-size: 15px; }
}