.license {
  @include flex-align(center, space-between);
  flex-direction: column;
  flex-basis: 0;
  flex-grow: 2.7;
  padding-bottom: 4rem;
  gap: 3.2rem;

  > p {
    text-align: left;
    color: var(--footer-text-color, #f4f3f9);
    margin: 0 auto;
    padding: 2rem 0;

    @include min(tablet) {
      padding: 1rem 0;
      margin: 0;
      width: 85%;
    }

    @include min(laptop) {
      width: 60%;
    }
  }
}  

.info {
  @include flex-direction(column);

  @include min(tablet) {
    padding-bottom: 2rem;
  }

  @include min(laptop) {
    @include flex-direction(row);
    padding-bottom: 4rem;
  }

  > div > img {
    padding-right: 2rem;
  }
}

.security {
  @include text-background(var(--footer-security-background-color), var(--footer-security-text-color, var(--color-49)));
  width: auto;
  padding: 0.7rem 2rem;
  order: 3;
  gap: 1rem;
  
  @include min(tablet) {
    min-width: 285px;
  }
}

.socialIcons {  
  ul {
    @include flex-align(center, center);
    flex-wrap: wrap;

    @include min(tablet) {
      @include flex-align(center, flex-start);
    }

    li {
      margin: 0 0.8rem 0.8rem 0;

      a {
        color: var(--footer-text-color, var(--color-4));
        display: flex;
        width: 40px;
        height: 40px;

        &:hover {
          color: var(--footer-text-color, var(--color-21));
        }

        svg {
          font-size: 1.2rem;
        }

        img {
          width: 40px;
          height: 40px;
        }
      }
    }
  }
}

.gamblingText {
  order: 4;
}

.templateOne {
  @include min(tablet) {
    padding-bottom: 6rem;
    flex-direction: row;

    .socialIcons {
      order: -1;
    }
  }
}

.templateTwo,
.templateThree {
  .gamblingText,
  .socialIcons {
    flex-basis: 100%;
  }

  .socialIcons {
    order: 3;
  }

  .security {
    order: 2;
  }

  @include min(tablet) {
    flex-wrap: wrap;
    @include flex-align(flex-start, space-between);
    flex-direction: row;
    gap: unset;
    flex: 0 1 40%;

    .socialIcons {
      padding: 4rem 0;
    }

    .security {
      margin: 2rem 0;  
      position: absolute;
      top: 3.5rem;
      left: calc(40% + 1.6rem);
    }
  }

  @include min(laptop) {
    flex: 0 1 491px;

    .security {
      position: inherit;
      margin: 0;
      order: unset;
    }
  }
}

.logo {
  svg {
    width: 18.2rem;
    height: 4.8rem;
  }
}