.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;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  background: rgba(26, 26, 46, 0.7); /* Main color with transparency */
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 20px;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  color: #e94560; /* Auxiliary color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  gap: 30px;
}

.page-terms-conditions__table-of-contents {
  flex: 0 0 280px;
  background: #1a1a2e; /* Main color */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: calc(var(--header-offset, 120px) + 20px); /* Stick below header */
  align-self: flex-start;
  max-height: calc(100vh - var(--header-offset, 120px) - 40px);
  overflow-y: auto;
}

.page-terms-conditions__toc-title {
  font-size: 1.5em;
  color: #e94560; /* Auxiliary color */
  margin-bottom: 20px;
  border-bottom: 2px solid #e94560;
  padding-bottom: 10px;
}

.page-terms-conditions__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-terms-conditions__toc-list li {
  margin-bottom: 10px;
}

.page-terms-conditions__toc-link {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-terms-conditions__toc-link:hover {
  color: #e94560; /* Auxiliary color on hover */
  transform: translateX(5px);
}

.page-terms-conditions__article {
  flex: 1;
  background: rgba(26, 26, 46, 0.8); /* Slightly transparent main color */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__article-heading {
  font-size: 2em;
  color: #e94560; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(233, 69, 96, 0.5);
  padding-bottom: 10px;
}

.page-terms-conditions__article-paragraph {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-terms-conditions__inline-link {
  color: #e94560;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__inline-link:hover {
  color: #ffffff;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-terms-conditions__call-to-action {
  background: linear-gradient(90deg, #1a1a2e, #e94560);
  padding: 50px 30px;
  text-align: center;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

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

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

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #1a1a2e; /* Text color for white button */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  background-color: #f0f0f0;
  color: #e94560; /* Auxiliary color on hover */
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__content-area {
    flex-direction: column;
    gap: 20px;
  }

  .page-terms-conditions__table-of-contents {
    position: static;
    max-height: none;
    overflow-y: visible;
    flex: none;
    width: 100%;
  }
}

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

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

  .page-terms-conditions__article-heading {
    font-size: 1.5em;
  }

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

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

  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  
  .page-terms-conditions__hero-section {
    min-height: 300px;
  }

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

@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__article {
    padding: 20px;
  }

  .page-terms-conditions__article-heading {
    font-size: 1.3em;
  }

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

  .page-terms-conditions__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}