/* style/terms-conditions.css */
.page-terms-conditions {
  color: #ffffff; /* Body background is #000 (dark), so main text color is light */
  background-color: #000;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #8B0000, #FFD700);
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Apply header offset here if shared.css doesn't do it for body */
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__intro-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-terms-conditions__hero-image {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__section {
  padding: 60px 20px;
  background-color: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-terms-conditions__section:nth-child(even) {
  background-color: #1a1a1a;
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
}

.page-terms-conditions__subsection-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #8B0000; /* Dark red for subsections */
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-terms-conditions ul {
  list-style: disc;
  padding-left: 30px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  color: #e0e0e0;
}

.page-terms-conditions a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-terms-conditions__content-image {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Styles */
.page-terms-conditions__faq-section {
  background-color: #0d0d0d;
  padding: 60px 20px;
}

.page-terms-conditions__faq-list {
  margin-top: 30px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.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;
  color: inherit;
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  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: #8B0000;
  transform: rotate(180deg);
}

.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-color: #1a1a1a;
  color: #e0e0e0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 32px;
  }
  .page-terms-conditions__intro-description {
    font-size: 16px;
  }
  .page-terms-conditions__section-title {
    font-size: 28px;
  }
  .page-terms-conditions__subsection-title {
    font-size: 22px;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-terms-conditions__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-terms-conditions__intro-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__section {
    padding: 40px 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-terms-conditions__subsection-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 15px;
  }
  .page-terms-conditions ul {
    padding-left: 20px;
  }

  /* Images responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__hero-image,
  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* FAQ responsive */
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 16px;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }

  /* Buttons responsive */
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    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;
  }
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}