/* style/terms-conditions.css */
.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text contrast */
}

.page-terms-conditions__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold primary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 90%;
}

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

.page-terms-conditions__hero-button,
.page-terms-conditions__call-to-action-button {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color for buttons */
  color: #8B0000; /* Deep red text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-terms-conditions__hero-button:hover,
.page-terms-conditions__call-to-action-button:hover {
  background-color: #8B0000; /* Deep red on hover */
  color: #FFD700; /* Gold text on hover */
  border-color: #8B0000;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-terms-conditions__section-introduction {
  margin-bottom: 50px;
  text-align: center;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-terms-conditions__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for sections */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  border-left: 5px solid #FFD700;
}

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
}

.page-terms-conditions__list-item strong {
  color: #FFD700;
}

.page-terms-conditions__paragraph a,
.page-terms-conditions__list-item a {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__paragraph a:hover,
.page-terms-conditions__list-item a:hover {
  color: #8B0000; /* Deep red on hover */
  text-decoration: underline;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  display: block;
  max-width: 800px; /* Constrain content images */
  min-width: 200px; /* Minimum size requirement */
}

.page-terms-conditions__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__section--call-to-action {
  text-align: center;
  background-color: rgba(139, 0, 0, 0.2); /* Semi-transparent deep red */
  padding: 40px;
  border-radius: 10px;
  border: 2px solid #FFD700;
}

.page-terms-conditions__section--call-to-action .page-terms-conditions__sub-title {
  color: #FFD700;
  font-size: 2.2em;
  margin-bottom: 20px;
}

.page-terms-conditions__section--call-to-action .page-terms-conditions__paragraph {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 2em;
  }

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

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

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

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

  .page-terms-conditions__hero-button,
  .page-terms-conditions__call-to-action-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Mobile overflow prevention for images */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Maintain minimum size */
  }
}

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

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

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

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
  }

  .page-terms-conditions__hero-button,
  .page-terms-conditions__call-to-action-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-terms-conditions__list {
    margin-left: 15px;
  }
}