/* style/terms-conditions.css */
.page-terms-conditions {
  color: #333333; /* Dark text for light 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 {
  background-color: #f0f0f0; /* Light background for hero section */
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.page-terms-conditions__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
  border: 2px solid #000000;
}

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

.page-terms-conditions__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-terms-conditions__table-of-contents {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 5px solid #000000;
  border-radius: 5px;
}

.page-terms-conditions__content-heading {
  font-size: 2em;
  color: #000000;
  margin-bottom: 20px;
}

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

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

.page-terms-conditions__toc-list a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-terms-conditions__toc-list a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-terms-conditions__article {
  margin-top: 30px;
}

.page-terms-conditions__article-heading {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

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

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

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

.page-terms-conditions__article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-terms-conditions__cta-section {
  background-color: #000000; /* Dark background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-terms-conditions__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 40px auto;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-terms-conditions__cta-description {
  font-size: 1.15em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 80px);
  }

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

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

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

  .page-terms-conditions__button {
    width: 100%;
    padding: 10px 20px;
    font-size: 1em;
  }

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

  .page-terms-conditions__content-heading {
    font-size: 1.8em;
  }

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

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

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

  /* Mobile content area image resizing */
  .page-terms-conditions__hero-image,
  .page-terms-conditions__article-image,
  .page-terms-conditions__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}

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