@use '@funidata/fudis-core' as core;

.fudis-footer {
  @include core.box-reset;
  @include core.bg-color('gray-extra-light');

  display: inline-flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  padding: core.$spacing-md core.$spacing-sm core.$spacing-xxl core.$spacing-sm;
  width: 100%;
  text-align: center;

  &__item {
    &:first-of-type {
      margin-bottom: core.$spacing-sm;
    }

    &__logo {
      display: block;
      /* stylelint-disable-next-line property-disallowed-list, color-no-hex */
      color: #000000;

      &:focus {
        @include core.focus-generic;
      }
    }

    @include core.breakpoint('sm') {
      &:first-of-type {
        margin-right: core.$spacing-xl;
        margin-bottom: 0;
      }
    }
  }

  @include core.breakpoint('sm') {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-right: core.$spacing-xxl;
    padding-left: core.$spacing-xxl;
    text-align: start;
  }
}
