/* ============================================================
   Footer — логотип и юридическая информация
   ============================================================ */

.footer {
  height: auto;
  margin: 0;
  min-height: clamp(200px, 14vw, 270px);
  padding: 0;

  @media (width <= #{$features-mq-narrow}) {
    max-height: 130px;
    min-height: 130px;
  }

  &__legal {
    background-color: #fff5f7;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    min-height: inherit;
    padding-block: clamp(28px, 3.5vw, 45px);
    padding-inline: var(--container-padding);

    @media (min-width: $bp-1440) {
      padding-inline: 100px;
    }

    @media (width <= #{$features-mq-narrow}) {
      height: 130px;
      justify-content: unset;
      min-height: unset;
      padding: 20px;
    }
  }

  &__legal-inner {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    justify-content: space-between;
    margin-inline: auto;
    max-width: var(--container-max);
    width: 100%;

    @media (min-width: $bp-md) {
      flex-direction: row;
      gap: 2rem;
    }

    @media (width <= #{$features-mq-narrow}) {
      align-items: unset;
      flex-direction: row;
    }
  }

  &__legal-col {
    color: #1e1e1e;
    font-family: Manrope, sans-serif;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    leading-trim: both;
    line-height: 120%;
    margin: 0;
    text-edge: cap;

    p {
      margin: 0 0 0.35em;

      &:last-child {
        margin-bottom: 0;
      }
    }

    &--address {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 14px;
      max-width: 23rem;
      text-align: start;

      p {
        margin: 0;
      }
    }

    &--ids {
      margin-bottom: 13px;
      text-align: start;

      @media (min-width: $bp-md) {
        flex-shrink: 0;
      }
    }

    @media (width <= #{$features-mq-narrow}) {
      color: #1e1e1e;
      font-family: var(--font-manrope);
      font-size: 5px;
      font-style: normal;
      font-weight: 400;
      line-height: 120%;

      /* stylelint-disable order/properties-alphabetical-order, property-no-unknown */
      font-feature-settings: 'liga' off, 'clig' off;
      leading-trim: both;
      text-edge: cap;
      /* stylelint-enable order/properties-alphabetical-order, property-no-unknown */

      &--address {
        flex-basis: 184px;
        gap: 6px;
        margin-bottom: unset;
      }

      &--ids {
        flex-basis: 51px;
        margin-bottom: unset;
      }
    }
  }
}
