.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header on desktop */
}

.page-terms-conditions__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
  z-index: 0;
}

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  color: #FFFFFF; /* White text for dark hero image overlay */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.page-terms-conditions__hero-description {
  font-size: 1.3em;
  color: #F0F0F0; /* Slightly off-white for description */
  max-width: 800px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 2;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.page-terms-conditions__section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-terms-conditions__article {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__article-title {
  font-size: 1.8em;
  color: #000000; /* Main color for titles */
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45; /* Accent color */
  padding-bottom: 10px;
}

.page-terms-conditions__article p {
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__article a {
  color: #FCBC45; /* Accent color for links */
  text-decoration: none;
}

.page-terms-conditions__article a:hover {
  text-decoration: underline;
}

.page-terms-conditions__image-wrapper {
  margin: 20px 0;
  text-align: center;
}

.page-terms-conditions__image {
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  width: 100%; /* Ensure images fill their container */
  height: auto;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-terms-conditions__cta-wrapper {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 50px;
  text-align: center;
  border-radius: 10px;
  margin-top: 40px;
  grid-column: 1 / -1; /* Span full width in grid */
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Accent color for CTA title */
}

.page-terms-conditions__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA button */
  color: #000000; /* Dark text for button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px;
  min-height: 50px;
}

.page-terms-conditions__cta-button:hover {
  background-color: #FFD700;
}

.page-terms-conditions__contact-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 10px;
}

.page-terms-conditions__contact-title {
  font-size: 2.2em;
  color: #000000;
  margin-bottom: 15px;
}

.page-terms-conditions__contact-text {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-terms-conditions__contact-button {
  display: inline-block;
  background-color: #000000; /* Main color for contact button */
  color: #FFFFFF; /* White text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px;
  min-height: 50px;
}

.page-terms-conditions__contact-button:hover {
  background-color: #333333;
}

.page-terms-conditions__image-wrapper--contact {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }

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

  .page-terms-conditions__cta-title {
    font-size: 2em;
  }

  .page-terms-conditions__contact-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }

  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }

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

  .page-terms-conditions__content-area,
  .page-terms-conditions__contact-section {
    padding: 30px 15px;
  }

  .page-terms-conditions__section-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-terms-conditions__article-title {
    font-size: 1.5em;
  }

  .page-terms-conditions__cta-wrapper {
    padding: 40px 20px;
  }

  .page-terms-conditions__cta-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__cta-text {
    font-size: 1em;
  }

  /* Mobile content area images MUST be responsive and not overflow */
  .page-terms-conditions__content-area img,
  .page-terms-conditions__contact-section img {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure no images smaller than 200px in content area on mobile */
  .page-terms-conditions__image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
}