/* Shared public footer, based on the approved compact landing footer. */
.tvk-public-footer {
  box-sizing: border-box;
  padding: 18px 0;
  border-top: 1px solid var(--t-border, var(--line));
  background: var(--t-bg, var(--black));
  color: var(--muted, var(--t-text-muted));
  font-size: 13px;
  line-height: 1.4;
}

.tvk-public-footer *,
.tvk-public-footer *::before,
.tvk-public-footer *::after {
  box-sizing: border-box;
}

.tvk-public-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 36px;
  width: min(var(--container, 1180px), calc(100% - 36px));
  margin: 0 auto;
}

.tvk-public-footer__brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.tvk-public-footer a {
  color: inherit;
  text-decoration: none;
}

.tvk-public-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
}

.tvk-public-footer__brand picture {
  display: block;
  line-height: 0;
}

.tvk-public-footer__brand img {
  display: block;
  width: auto;
  height: 30px;
  max-width: 132px;
}

.tvk-public-footer__legal {
  display: grid;
  gap: 2px;
  line-height: 1.4;
}

.tvk-public-footer__copyright {
  color: var(--text, var(--t-text));
  font-weight: 800;
}

.tvk-public-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.tvk-public-footer__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tvk-public-footer .tvk-public-footer__email {
  min-height: 44px;
  width: fit-content;
  color: var(--purple2, var(--t-primary));
}

.tvk-public-footer__nav {
  display: block;
  justify-self: end;
  min-width: 0;
}

.tvk-public-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 16px;
}

.tvk-public-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 40px;
  padding: 4px 0;
  line-height: 1.25;
  text-align: left;
  text-wrap: pretty;
}

@media (hover: hover) {
  .tvk-public-footer a:hover {
    color: var(--yellow, var(--t-accent));
  }
}

@media (max-width: 1050px) {
  .tvk-public-footer__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tvk-public-footer__nav {
    justify-self: stretch;
  }

  .tvk-public-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .tvk-public-footer--landing {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .tvk-public-footer__inner {
    width: min(var(--container, 1180px), calc(100% - 24px));
    gap: 18px;
  }

  .tvk-public-footer__brand-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tvk-public-footer__brand img {
    height: 28px;
  }

  .tvk-public-footer__copyright {
    font-size: 15px;
  }

  .tvk-public-footer__meta {
    display: grid;
    gap: 4px;
  }

  .tvk-public-footer__meta-item {
    white-space: normal;
  }

  .tvk-public-footer__inn {
    white-space: nowrap;
  }

  .tvk-public-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .tvk-public-footer__links a {
    min-height: 44px;
  }
}
