@import '../helpers/helpers';

.legal-info {
  margin-top: 40px;
  border: 1px solid $gray;
  border-radius: 4px;
  padding: 16px;
  position: relative;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;

  &__toggle {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .icon-wrap {
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;

      &:after {
        content: '+';
        color: $blue;
        font-size: 1.575rem;
      }
    }

    &[aria-expanded='true'] {
      .icon-wrap {
        &:after {
          content: '-';
          font-size: 2.95rem;
        }
      }
    }
  }

  .collapse-wrap {
    margin-top: 16px;
  }

  .container {
    padding: 0;
  }
}

@include media-breakpoint-up(sm) {
  .legal-info {
    padding: 24px;
  }
}

@include media-breakpoint-up(md) {
  .legal-info {
    padding: 24px 40px;
  }
}
