/* ======================================== */
/* TERMS PAGE STYLING                       */
/* ======================================== */

/* Terms Header Section */
.gx-terms-header {
  background: #fff;
  padding-bottom: 0;
}

.gx-terms-header-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.gx-terms-top-row {
  display: flex;
  align-items: end;
  position: relative;
  padding-bottom: 1.5rem; /* Space for the ::before bar */
}

.gx-terms-top-row *{
  flex: 1;
}

.gx-terms-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 40px;
  background: #d7e4eb;
  width: 50%;
  border-radius: 0 20px 20px 0;
  top: 17rem;
}

.gx-terms-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 200;
  color: #1a7fae; /* Cyan color matching design */
  margin: 0;
  letter-spacing: 0.02em;
  font-family: "Poppins", "Helvetica", "Arial", sans-serif;
  margin-bottom: 3rem;
}

.gx-terms-arrows {
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.gx-arrow-img {
  width: auto;
  height: 180px;
  object-fit: contain;
  display: block;
}

/* Terms Content Section */
.gx-terms-content {
  background: #fff;
  padding: 3rem 0 4rem 0;
}

.gx-terms-sections {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gx-terms-section {
  margin-bottom: 2.5rem;
  font-style: italic;
  color: #1a7fae;
}

.gx-terms-section-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a7fae; /* Cyan color for labels */
  margin: 0;
  font-family: "Poppins", "Helvetica", "Arial", sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.gx-terms-section-content {
  margin-bottom: 1rem;
}

.gx-terms-section-content p {
  margin: 0;
  text-align: left;
  color: #1a7fae;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.gx-terms-section-content p:last-child {
  margin-bottom: 0;
}

.gx-terms-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.gx-terms-link:hover {
  color: #005662;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .gx-terms-header {
    padding: 2rem 0 1.5rem 0;
  }
  
  .gx-terms-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.2rem;
  }
  
  .gx-terms-header::before {
    max-width: 200px;
  }
  
  .gx-terms-content {
    padding: 2rem 0 3rem 0;
  }
  
  .gx-terms-sections {
    padding: 0 1.5rem;
  }
  
  .gx-terms-section {
    margin-bottom: 2rem;
  }
  
  .gx-terms-section-label {
    font-size: 1.1rem;
  }
  
  .gx-terms-section-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .gx-terms-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .gx-terms-top-row {
    gap: 0.8rem;
    padding-bottom: 1rem;
  }
  
  .gx-terms-header::before {
    max-width: 150px;
  }
  
  .gx-terms-arrows {
    gap: 0.3rem;
  }
  
  .gx-arrow-img {
    height: 120px;
  }
  
  .gx-terms-content {
    padding: 1.5rem 0 2.5rem 0;
  }
  
  .gx-terms-sections {
    padding: 0 1rem;
  }
  
  .gx-terms-section {
    margin-bottom: 1.8rem;
  }
  
  .gx-terms-section-label {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .gx-terms-section-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .gx-terms-header {
    padding: 1.5rem 0 1rem 0;
  }
  
  .gx-terms-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 2rem;
  }
  
  .gx-terms-top-row {
    padding-bottom: 0.8rem;
  }
  
  .gx-terms-header::before {
    max-width: 120px;
    height: 3px;
  }
  
  .gx-arrow-img {
    width: 32px;
    height: 16px;
  }
  
  .gx-terms-content {
    padding: 1rem 0 2rem 0;
  }
  
  .gx-terms-sections {
    padding: 0 0.8rem;
  }
  
  .gx-terms-section {
    margin-bottom: 1.5rem;
  }
  
  .gx-terms-section-label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .gx-terms-section-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
}
