/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section - No text content, only for visual top */
.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 0; /* Shared.css already handles body padding-top for header offset */
  padding-bottom: 40px; /* Space below the hero content */
  background: #1A202C; /* Main brand color for hero background */
  text-align: center;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 40px; /* Top padding for content, not for header offset */
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-terms-conditions__article {
  background-color: #1A202C; /* Dark background for the article block */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Accent color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__section-title:first-of-type {
  margin-top: 0;
}

.page-terms-conditions__sub-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
  color: #e0e0e0;
  font-size: 16px;
}

.page-terms-conditions__text-block ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #e0e0e0;
  font-size: 16px;
}

.page-terms-conditions__text-block ul li {
  margin-bottom: 8px;
}

.page-terms-conditions__text-block a {
  color: #FFD700; /* Accent color for links */
  text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
  color: #ffffff;
}

/* Image styles */
.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);
  min-width: 200px;
  min-height: 200px;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background-color: rgba(255, 215, 0, 0.1); /* Light accent background */
  border-radius: 10px;
  border: 1px solid #FFD700;
}

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

.page-terms-conditions__cta-link {
    color: #FFD700;
    text-decoration: underline;
    font-weight: bold;
}

.page-terms-conditions__cta-link:hover {
    color: #ffffff;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color for button */
  color: #1A202C; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  margin-top: 60px;
  background-color: #1A202C; /* Dark background for FAQ section */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Accent color for FAQ title */
  text-align: center;
  margin-bottom: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #252525; /* Slightly lighter dark for FAQ items */
  border: 1px solid #333333;
}

.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;
  color: #e0e0e0;
  font-size: 15px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px !important;
  opacity: 1;
  background-color: #2e2e2e; /* Background for expanded answer */
  border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1A202C; /* Main brand color for question */
  border: 1px solid #333333;
  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-color: #2e2e2e;
  border-color: #FFD700; /* Accent border on hover */
}

.page-terms-conditions__faq-question:active {
  background-color: #3a3a3a;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Accent color for toggle icon */
  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 {
  transform: rotate(45deg); /* Rotate for 'x' effect, or simply change text to '-' */
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 36px;
  }

  .page-terms-conditions__description {
    font-size: 17px;
  }

  .page-terms-conditions__article {
    padding: 30px;
  }

  .page-terms-conditions__section-title {
    font-size: 26px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
  }

  .page-terms-conditions__text-block p,
  .page-terms-conditions__text-block ul li {
    font-size: 15px;
  }

  .page-terms-conditions__faq-title {
    font-size: 28px;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 17px;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-content {
    padding: 60px 15px 30px;
  }

  .page-terms-conditions__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__content-section {
    padding: 20px 0;
  }

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

  .page-terms-conditions__article {
    padding: 20px;
  }

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

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

  .page-terms-conditions__text-block p,
  .page-terms-conditions__text-block ul li {
    font-size: 14px;
  }

  /* Image responsive adjustments */
  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure minimum size is respected */
    min-height: 200px !important;
    margin: 20px auto;
  }

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

  .page-terms-conditions__cta-section {
    padding: 20px;
    margin-top: 40px;
  }

  .page-terms-conditions__cta-text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* FAQ responsive adjustments */
  .page-terms-conditions__faq-section {
    padding: 20px;
    margin-top: 40px;
  }

  .page-terms-conditions__faq-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .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); /* Adjust width for toggle */
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
    font-size: 14px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
}