/* style/terms-conditions.css */

/* General page styling */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* General background color */
  line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #ffffff; /* White background for hero */
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
  box-sizing: border-box;
}

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

.page-terms-conditions__hero-content-wrapper {
  max-width: 800px;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #E53935; /* Brand primary color for title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-terms-conditions__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-terms-conditions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-terms-conditions__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-terms-conditions__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn--secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-terms-conditions__btn--secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
}

.page-terms-conditions__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.page-terms-conditions__section-title {
  font-size: 1.8em;
  color: #E53935;
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-terms-conditions__section-title:first-of-type {
    margin-top: 0;
}

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  color: #333333;
  font-size: 1em;
}

.page-terms-conditions__image-figure {
  margin: 30px 0;
  text-align: center;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__image-caption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

/* Promo Section */
.page-terms-conditions__promo-section {
  background-color: #E53935; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-terms-conditions__promo-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-terms-conditions__promo-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.page-terms-conditions__promo-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Color contrast classes (as required by prompt) */
.page-terms-conditions__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-terms-conditions__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__article-wrap {
    padding: 30px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(2em, 3.5vw, 3em);
  }
  .page-terms-conditions__promo-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  /* Top section title + CTA */
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

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

  .page-terms-conditions__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-terms-conditions__hero-cta-group {
    flex-direction: column;
    padding: 0 15px;
    gap: 10px;
  }

  .page-terms-conditions__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Single column text container */
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }

  .page-terms-conditions__article-wrap {
    padding: 20px;
    margin: 0 15px; /* Add side margins */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__paragraph {
    font-size: 0.95em;
  }

  /* General images and figure */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__image-figure {
    margin: 20px 0;
  }

  .page-terms-conditions__image-caption {
    font-size: 0.85em;
    padding: 0 15px;
  }

  /* Promo Section (similar to top section) */
  .page-terms-conditions__promo-section {
    padding: 40px 0;
  }

  .page-terms-conditions__promo-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-terms-conditions__promo-description {
    font-size: 1em;
    padding: 0 15px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__promo-cta-group {
    flex-direction: column;
    padding: 0 15px;
    gap: 10px;
  }
}