/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Blue White gradient */
  color: #ffffff;
  overflow: hidden;
}

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

.page-terms-conditions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  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: clamp(28px, 4vw, 48px);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__description {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-terms-conditions__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #2F6BFF; /* Main color */
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #6FA3FF; /* Accent color */
  border-radius: 2px;
}

.page-terms-conditions__section-title--white {
  color: #ffffff;
}

.page-terms-conditions__section-title--white::after {
  background-color: #ffffff;
}

.page-terms-conditions__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #2F6BFF; /* Main color */
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
  color: #1F2D3D;
}

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-terms-conditions ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main color */
  text-decoration: none;
  border: 2px solid #2F6BFF; /* Main color border */
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background: #2F6BFF; /* Main color for dark section */
  color: #ffffff;
}

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

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

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: #F4F7FB; /* Background */
}

.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-terms-conditions__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
}

details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

/* General image styling for content sections */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__section-title {
    font-size: 28px;
  }
  .page-terms-conditions__sub-title {
    font-size: 22px;
  }
  .page-terms-conditions p,
  .page-terms-conditions li,
  .page-terms-conditions__faq-qtext {
    font-size: 15px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

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

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

  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .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: 12px 20px;
    font-size: 16px;
  }

  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    padding: 40px 0;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
  }

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

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

  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px 20px;
  }

  .page-terms-conditions__faq-qtext {
    font-size: 15px;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 22px;
    width: 25px;
  }

  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 20px 15px;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 15px auto;
  }

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