/* 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); /* Fixed header offset */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.page-terms-conditions__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background-color: #007bff; /* Main brand color for hero background if image doesn't cover fully */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  overflow: hidden;
}

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

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

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffc107; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Accent color for CTA button */
  color: #343a40; /* Dark text for accent button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background for content */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__section:last-child {
  border-bottom: none;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #007bff; /* Main brand color for section titles */
  margin-bottom: 15px;
  border-left: 5px solid #ffc107;
  padding-left: 10px;
}

.page-terms-conditions__paragraph {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block; /* Ensure images are block level */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-terms-conditions__inline-cta {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__inline-cta:hover {
  color: #e0a800;
  text-decoration: underline;
}

.page-terms-conditions__call-to-action {
  text-align: center;
  padding: 60px 20px;
  background-color: #0056b3; /* Darker shade of main color */
  margin-top: 40px;
  border-radius: 8px;
}

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

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

.page-terms-conditions__cta-button--primary {
  background-color: #ffc107;
  color: #343a40;
  margin-right: 15px;
}

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

.page-terms-conditions__cta-button--secondary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #ffc107;
}

.page-terms-conditions__cta-button--secondary:hover {
  background-color: #0056b3;
  border-color: #e0a800;
}

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

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

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

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

  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    min-height: 300px;
  }

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

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

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

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

  .page-terms-conditions__cta-button--primary {
    margin-right: 0;
  }

  .page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
  }

  .page-terms-conditions__call-to-action {
    padding: 40px 15px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding: 40px 10px;
    min-height: 250px;
  }

  .page-terms-conditions__cta-button {
    display: block;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  .page-terms-conditions__cta-button--primary {
    margin-bottom: 10px;
  }
}