.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-terms-conditions__button--register:hover {
  background-color: #E0E0E0;
  color: #000000;
}

.page-terms-conditions__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-terms-conditions__button--login:hover {
  background-color: #E6A73D;
  color: #000000;
}

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

.page-terms-conditions__article {
  flex: 3;
  min-width: 60%;
}

.page-terms-conditions__sidebar {
  flex: 1;
  min-width: 280px;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

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

.page-terms-conditions__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-terms-conditions__sidebar-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 20px;
}

.page-terms-conditions__sidebar-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

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

.page-terms-conditions__sidebar-link {
  color: #333333;
  text-decoration: none;
  font-size: 1.1em;
  display: block;
  padding: 5px 0;
  transition: color 0.2s ease;
}

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

.page-terms-conditions__sidebar-cta {
  background-color: #000000;
  color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.page-terms-conditions__sidebar-cta-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-terms-conditions__sidebar-cta-text {
  margin-bottom: 20px;
}

.page-terms-conditions__button--sidebar-register {
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  font-size: 1.1em;
}

.page-terms-conditions__button--sidebar-register:hover {
  background-color: #E0E0E0;
}

.page-terms-conditions__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-terms-conditions__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.page-terms-conditions__floating-button:hover {
  transform: translateY(-3px);
}

.page-terms-conditions__floating-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-terms-conditions__floating-button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

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

  .page-terms-conditions__content-area {
    flex-direction: column;
    margin: 20px auto;
    padding: 0 15px;
    gap: 20px;
  }

  .page-terms-conditions__article,
  .page-terms-conditions__sidebar {
    min-width: 100%;
  }

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

  .page-terms-conditions__image {
    margin: 15px 0;
    max-width: 100%;
    height: auto;
  }

  .page-terms-conditions__floating-buttons {
    bottom: 15px;
    right: 15px;
    flex-direction: row;
    gap: 8px;
  }

  .page-terms-conditions__floating-button {
    width: 45px;
    height: 45px;
    font-size: 0.8em;
  }

  /* Ensure content images are responsive */
  .page-terms-conditions__article img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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

  .page-terms-conditions__floating-buttons {
    bottom: 10px;
    right: 10px;
  }
}

/* Image sizing rules to prevent small icons */
.page-terms-conditions img {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Specific rule for content images to ensure min size */
.page-terms-conditions__article img,
.page-terms-conditions__sidebar img {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile media query for images to prevent overflow */
@media (max-width: 768px) {
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
    min-width: unset; /* Allow smaller widths when constrained by max-width */
    min-height: unset; /* Allow smaller heights when constrained by max-width */
  }
  .page-terms-conditions__article img,
  .page-terms-conditions__sidebar img {
    max-width: 100%;
    height: auto;
    min-width: unset;
    min-height: unset;
  }
}