/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css body */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-terms-conditions__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for readability */
  color: #333333; /* Dark text for white background */
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333333;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__image--center {
  text-align: center;
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

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

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

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

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

  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

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

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

  .page-terms-conditions__content-area {
    padding: 40px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
    margin-top: 30px;
  }

  .page-terms-conditions__text-block {
    font-size: 1em;
  }

  .page-terms-conditions__cta-section {
    padding: 40px 15px;
  }

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

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

  .page-terms-conditions__hero-cta,
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsiveness for mobile */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }
}

/* Ensure no horizontal scroll for content area on mobile */
.page-terms-conditions {
  overflow-x: hidden;
}

.page-terms-conditions__content-area {
  overflow-x: hidden;
}

/* Dark background text color */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep background requires light text */
}

/* Light background text color */
.page-terms-conditions__light-bg {
  color: #333333; /* Light background requires dark text */
}

/* Images in content area should not be filtered */
.page-terms-conditions img {
  filter: none; /* Ensure no CSS filter changes image color */
}

/* All content area images must be at least 200px */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-terms-conditions__content-area img {
    width: 100% !important; /* Override any smaller sizes */
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}