.legal-hub-template #et-boc .et-l h2 {
    font-weight:bold;
    font-size: var(--font-size-header);
    color: var(--color-glooko-dark-blue);
    padding-bottom: 2rem;
}

.legal-hub-template #et-boc .et-l p {
    max-width:100%;
}

.legal-hub-wrapper {
    margin-top:2rem;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
}

.legal-hub-wrapper .container {
    width: 90%;
    max-width: 1440px;
}

.legal-hub-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.legal-card {
  background-image: var(--gradient-glooko-teal);
  border-radius: 36px;
  padding: 2.5rem;
  flex: 1 1 calc(50% - 1rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  gap:1.5rem
}

.icon {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.agreements-icon {
  background-image:url('../images/icons/ico-terms.png')
}

.policies-icon {
  background-image:url('../images/icons/ico-policies.png')
}

.privacy-icon {
  background-image:url('../images/icons/ico-privacy.png')
}

.compliance-icon {
  background-image:url('../images/icons/ico-compliance.png')
}


.card-header h3 {
  margin: 0;
  font-size: var(--font-size-header);
  color: var(--color-glooko-dark-blue);
}

ul.document-links {
    margin:0;
    padding:0;
    list-style-type:none;
    font-size:1.25rem;
    line-height:1.4;
    display:flex;
    flex-direction:column;
    gap:.5rem;
}

ul.document-links a {
    text-decoration:none;
    font-weight:bold;
    color: var(--color-glooko-blue);
}


@media (max-width: 768px) {
  .legal-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 1024px) {
  .legal-hub-wrapper .container {
    width: 90%;
  }

  .legal-card {
    padding: 2rem;
  }

  .card-header {
    margin-bottom: 2.5rem;
    gap: 1rem;
  }

  .icon {
    width: 120px;
    height: 120px;
  }

  .card-header h3 {
    font-size: 1.75rem;
  }

  ul.document-links {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .legal-hub-blocks {
    flex-direction: column;
    gap: 1.5rem;
  }

  .legal-card {
    flex: 1 1 100%;
    padding: 1.75rem;
    border-radius: 24px;
  }

  .icon {
    width: 90px;
    height: 90px;
  }

  .card-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 2rem;
  }

  .card-header h3 {
    font-size: 1.5rem;
  }

  ul.document-links {
    font-size: 0.95rem;
  }

  .legal-hub-template #et-boc .et-l h2 {
    font-size: 1.75rem;
    padding-bottom: 1.5rem;
  }

  .legal-hub-template #et-boc .et-l p {
    max-width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .icon {
    width: 70px;
    height: 70px;
  }

  .card-header h3 {
    font-size: 1.25rem;
  }

  .legal-card {
    padding: 1.25rem;
  }

  ul.document-links {
    font-size: 0.9rem;
  }
}
