/**
 * @file
 * Footer regions.
 */

.site-footer {
  color: var(--color--gray-65);
  background: var(--color-surface-footer);
  --footer-font-size: 12px;

  font-size: var(--footer-font-size);

  @media (min-width: 500px) {
    --footer-font-size: 14px;
  }

  & .menu {
    margin-inline-start: 0;
    list-style: none;

    & ul {
      margin-inline-start: var(--sp);
    }

    & li {
      margin-block-end: var(--sp0-5);
    }
  }

  & a {
    color: inherit;

    &:hover {
      text-decoration: none;
    }
  }
}

.site-footer .block__title {
  color: var(--color-text-neutral-loud);
  font-weight: 600;
}

/**
 * Special colors for footer that has a dark background.
 */

.site-footer .text-content {
  color: inherit;
  font-size: var(--footer-font-size);
  line-height: inherit;

  & * {
    color: inherit;
  }

  & a {
    text-decoration: underline;
    color: var(--color-text-inverse);
    box-shadow: none;

    &:hover {
      text-decoration: none;
      color: var(--color-text-inverse);
      box-shadow: none;
    }
  }
}

.site-footer .block__title {
  font-size: var(--footer-font-size);
}

@media (min-width: 24rem) {
  .region--footer_top__inner .block__title {
    display: flex;
    align-items: flex-end;
    min-block-size: 2lh;
  }
}

html[data-theme="light"] .site-footer {
  --color-surface-footer: #ebebea;
  --color-text-neutral-soft: var(--color--gray-45);
  --color-text-neutral-medium: var(--color--gray-20);
  --color-text-neutral-loud: var(--color--gray-5);

  color: var(--color-text-neutral-medium);
}

html[data-theme="light"] .site-footer .block__title {
  color: var(--color-text-neutral-loud);
}

html[data-theme="light"] .site-footer a {
  color: var(--color--gray-20);
}

html[data-theme="light"] .site-footer a:hover,
html[data-theme="light"] .site-footer a:focus-visible {
  color: var(--color--primary-30);
}

.site-footer .region--footer-bottom {
  margin-block-start: var(--sp);
  padding-block-start: 12px;
  border-block-start: 1px solid rgb(255 255 255 / 15%);
}

html[data-theme="light"] .site-footer .rcak-footer-logo {
  color: var(--color--gray-20);
}

html[data-theme="light"] .site-footer .region--footer-bottom {
  border-block-start-color: rgb(0 0 0 / 15%);
}

html[data-theme="light"] .site-footer .social-links__icon-image--default {
  opacity: 0;
}

html[data-theme="light"] .site-footer .social-links__icon-image--color {
  opacity: 1;
}

@media (min-width: 31.25rem) {
  .region--footer_top__inner .block__title {
    min-block-size: 1lh;
  }
}

@media (min-width: 62.5rem) {
  .region--footer_top__inner .block__title {
    min-block-size: 2lh;
  }

  .site-footer .region--footer-bottom {
    margin-block-start: var(--sp2);
    padding-block-start: var(--sp);
  }
}

/* Footer links retain their component appearance independently of the grid. */
.site-footer .block-menu .menu__link {
  text-decoration: none;
}

.site-footer .block-menu .menu__link:hover,
.site-footer .block-menu .menu__link:focus-visible {
  text-decoration: underline;
}
