/* style/terms-conditions.css */
.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0A1931; /* Primary brand color for hero background */
  border-bottom: 2px solid #FFD700; /* Accent line */
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-terms-conditions__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #0A1931; /* Dark text for gold button */
}

.page-terms-conditions__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-terms-conditions__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
  transform: translateY(-2px);
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0A1931; /* Dark blue background for content */
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
  margin-top: -40px; /* Overlap with hero for visual flow */
}

.page-terms-conditions__article {
  line-height: 1.7;
}

.page-terms-conditions__heading {
  font-size: 2.2em;
  color: #FFD700; /* Gold for main headings */
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  font-size: 1.6em;
  color: #f0f0f0; /* Slightly lighter white for subheadings */
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__paragraph {
  font-size: 1.05em;
  color: #e0e0e0; /* Off-white for paragraphs */
  margin-bottom: 20px;
}

.page-terms-conditions__link {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-terms-conditions__image-wrapper {
  margin: 40px 0;
  text-align: center;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-terms-conditions__actions-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.page-terms-conditions__disclaimer-section {
  background-color: #1a1a2e; /* Matches body background */
  padding: 60px 20px;
  text-align: center;
  border-top: 2px solid #0A1931;
}

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

.page-terms-conditions__disclaimer-content .page-terms-conditions__heading {
  color: #FFD700;
  font-size: 2em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.page-terms-conditions__disclaimer-content .page-terms-conditions__paragraph {
  color: #b0b0b0;
  font-size: 1em;
  line-height: 1.6;
}

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

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

  .page-terms-conditions__sub-heading {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-terms-conditions__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-terms-conditions__heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-heading {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

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

  .page-terms-conditions__content-image {
    max-width: 100%; /* Ensure images are responsive and don't overflow */
    height: auto;
  }

  .page-terms-conditions__actions-bottom {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-terms-conditions__disclaimer-content .page-terms-conditions__heading {
    font-size: 1.8em;
  }

  /* Critical for mobile overflow prevention */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-terms-conditions__sub-heading {
    font-size: 1.2em;
  }

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