/* style/terms-conditions.css */

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

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

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #F4F7FB; /* Consistent with page background */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-terms-conditions__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 30px;
  text-align: center;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: -60px; /* Overlap slightly with image */
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: 2.5em; /* Use relative font size, not too large */
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #D6E2FF; /* Border */
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
  font-size: 1em;
}

.page-terms-conditions__image-wrapper {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* --- CTA Section --- */
.page-terms-conditions__cta-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Using main and accent color for gradient */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #f0f8ff;
}

/* --- Buttons --- */
.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button Color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
  background-color: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #F0F8FF; /* Light subtle hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: 1.8em !important; /* Adjust for mobile H1 constraint */
    line-height: 1.3 !important;
  }
  .page-terms-conditions__intro-text {
    font-size: 1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__text-block {
    font-size: 0.95em;
  }
  .page-terms-conditions__cta-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size is kept */
    min-height: 200px !important; /* Ensure min size is kept */
  }
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  /* Mobile button responsiveness */
  .page-terms-conditions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General content area padding for mobile */
  .page-terms-conditions__section,
  .page-terms-conditions__hero-content,
  .page-terms-conditions__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure no image filters are used */
.page-terms-conditions img {
  filter: none !important;
}

/* Color contrast enforcement (implicit for most sections with background #F4F7FB or #FFFFFF, text #1F2D3D) */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

/* Ensure content images meet minimum size requirements and are not small icons */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
}