.legal-shell {
  --legal-footer-height: 54px;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--legal-footer-height, 54px);
  padding: 4px 16px;
  border-top: 1px solid var(--line, #27313e);
  background: var(--bg, #0c1016);
  cursor: auto;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted, #98a6b8);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.legal-footer a:hover {
  color: var(--text, #edf1f6);
  text-decoration: underline;
}

.legal-footer a:focus-visible {
  outline: 2px solid var(--cyan, #75cfd5);
  outline-offset: 2px;
}

.legal-shell #app > :is(.login, .loading, .shell),
.legal-shell #admin-app > :is(.admin-shell, .admin-access, .loading),
.legal-display #display-root,
.legal-display .display-connect {
  min-height: calc(100vh - var(--legal-footer-height));
  min-height: calc(100dvh - var(--legal-footer-height));
}

.legal-display .display-player {
  height: calc(100vh - var(--legal-footer-height));
  height: calc(100dvh - var(--legal-footer-height));
}

.legal-display .display-toolbar {
  bottom: calc(var(--legal-footer-height) + 1.5vh);
}

#app:has(> .shell) ~ .legal-footer {
  margin-left: 224px;
}

#admin-app:has(> .admin-shell) ~ .legal-footer {
  margin-left: 245px;
}

@media (max-width: 1150px) {
  #app:has(> .shell) ~ .legal-footer {
    margin-left: 190px;
  }
}

@media (max-width: 760px) {
  #app:has(> .shell) ~ .legal-footer,
  #admin-app:has(> .admin-shell) ~ .legal-footer {
    margin-left: 0;
  }
}
