/* style/terms-conditions.css */
.page-terms-conditions {
  color: #333333; /* Dark text for light body background #f4f4f4 */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background-color: #f0f0f0; /* Fallback background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

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

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #CC0000; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button:hover {
  background-color: #e06666; /* Lighter red on hover */
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #ffffff; /* White background for content for readability */
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #CC0000; /* Main brand color for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700; /* Gold underline */
  padding-bottom: 10px;
}

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

.page-terms-conditions__paragraph a {
  color: #CC0000;
  text-decoration: none;
  font-weight: bold;
}

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

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Ensure images cover their area */
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 20px;
  max-width: 40%;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 20px;
  max-width: 40%;
}

.page-terms-conditions__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 60%;
}

.page-terms-conditions__cta-button--bottom {
  margin-top: 40px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__disclaimer-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid #eee;
}

.page-terms-conditions__disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__disclaimer-title {
  font-size: 1.8em;
  color: #CC0000;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 80px);
    min-height: 400px;
  }

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

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

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

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

  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 20px auto;
    max-width: 100%;
    display: block;
  }

  .page-terms-conditions__image {
    max-width: 100%; /* Ensure content images are responsive */
    height: auto;
  }

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

  .page-terms-conditions__hero-content {
    padding: 0 10px;
  }

  /* Mobile content area overflow prevention */
  .page-terms-conditions {
    overflow-x: hidden;
  }
}

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

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

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