/* style/terms-conditions.css */
.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background-color: #1A2A4E; /* Main brand color for hero background */
  color: #ffffff;
}

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

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to make text more readable */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for content readability */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: -60px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__article {
  padding: 20px 0;
}

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

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-terms-conditions__paragraph a {
  color: #1A2A4E; /* Link color matching main brand color */
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__paragraph a:hover {
  color: #FFD700; /* Auxiliary color on hover */
}

.page-terms-conditions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #1A2A4E;
  border-radius: 8px;
  color: #ffffff;
}

.page-terms-conditions__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  color: #FFD700;
}

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

.page-terms-conditions__cta-button--register {
  background-color: #FFD700;
  color: #1A2A4E;
}

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

.page-terms-conditions__cta-button--login {
  background-color: #f0f0f0;
  color: #1A2A4E;
  border: 2px solid #FFD700;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-container {
    padding: 30px 15px;
  }

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

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

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

  .page-terms-conditions__section-title {
    font-size: 1.5em;
    margin-top: 30px;
  }

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

  .page-terms-conditions__cta-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-terms-conditions__section-title {
    font-size: 1.3em;
  }
  .page-terms-conditions__cta-button {
    width: 90%;
  }
}