.site-footer {
  box-sizing: border-box;
  width: min(900px, calc(100% - 20px));
  margin: 20px auto 0;
  border-top: 1px solid #999;
  padding: 12px 8px 22px;
  color: #555;
  font: 11px/1.5 Verdana, Arial, sans-serif;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin-bottom: 6px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #0645ad;
  text-decoration: none;
}

.site-footer a + a {
  margin-left: 0;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid #0645ad;
  outline-offset: 3px;
}

.site-footer.site-footer-game {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0 12px;
  border: 1px solid #777;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  touch-action: manipulation;
}

.site-footer-game nav {
  flex-wrap: nowrap;
  gap: 14px;
  margin: 0;
}

.site-footer-game a {
  min-height: 44px;
  white-space: nowrap;
}

body[data-game-page] #mobile-controls {
  --bottom: 56px !important;
}

body[data-game-page] #stick {
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

.legal-page .legal-date {
  display: block;
  margin: 8px 0 14px;
  color: #555;
  font-size: 12px;
}

.legal-page .legal-copy {
  padding: clamp(16px, 4vw, 28px);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-copy p {
  margin: 0 0 22px;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy a {
  text-decoration: underline;
}
