.page-terms-conditions {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #F4F7FB; /* Background color */
  color: #1F2D3D; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Main/Accent colors for gradient background */
  padding: 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 20px;
}

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

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #FFFFFF; /* White text on blue background */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #FFFFFF;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

/* Introduction Section */
.page-terms-conditions__introduction-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
  text-align: center;
  border-bottom: 1px solid #D6E2FF;
}

.page-terms-conditions__introduction-section .page-terms-conditions__section-title {
  color: #2F6BFF; /* Main color for section title */
  margin-bottom: 20px;
}

.page-terms-conditions__introduction-section .page-terms-conditions__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.05em;
  color: #1F2D3D;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Terms Sections */
.page-terms-conditions__sections-wrapper {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background color */
}

.page-terms-conditions__section-block {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF; /* Border color */
}

.page-terms-conditions__section-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 20px;
  border-bottom: 2px solid #6FA3FF; /* Accent color for border */
  padding-bottom: 10px;
}

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

.page-terms-conditions__text-block a {
  color: #2F6BFF; /* Main color for links */
  text-decoration: none;
  font-weight: 600;
}

.page-terms-conditions__text-block a:hover {
  text-decoration: underline;
  color: #6FA3FF; /* Accent color on hover */
}

/* Conclusion Section */
.page-terms-conditions__conclusion-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Main/Accent colors for gradient background */
  text-align: center;
  color: #FFFFFF;
  border-top: 1px solid #D6E2FF;
}

.page-terms-conditions__conclusion-section .page-terms-conditions__section-title {
  color: #FFFFFF;
  border-bottom-color: #A5C4FF; /* Glow color for border */
}

.page-terms-conditions__conclusion-section .page-terms-conditions__text-block {
  color: #E0E0E0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-terms-conditions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 30px 0;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-terms-conditions__introduction-section,
  .page-terms-conditions__sections-wrapper,
  .page-terms-conditions__conclusion-section {
    padding: 40px 0;
  }

  .page-terms-conditions__section-block {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  /* Ensure images are responsive and do not overflow */
  .page-terms-conditions__hero-image,
  .page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
  }

  .page-terms-conditions__content-image {
    width: 100%;
    max-width: 100%; /* Important for mobile overflow */
    height: auto;
  }

  /* Content area images should not be smaller than 200px */
  .page-terms-conditions__introduction-section img,
  .page-terms-conditions__sections-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
  }
}

/* Desktop specific image sizing for CLS */
@media (min-width: 769px) {
  .page-terms-conditions__hero-image {
    width: 1200px;
    height: 675px;
  }
  .page-terms-conditions__content-image {
    width: 800px;
    height: 600px;
  }
}