/* ShibaRun legal footer: website only. Loaded as plain CSS by both website
 * pages (the coming-soon page and the game page), so it shows with JavaScript
 * off. App builds remove the footer from the game page. */
.site-legal-footer {
  position: relative; box-sizing: border-box; width: 100%; margin: 0;
  padding: 14px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #102c29; color: #c9d3cf; text-align: center;
  font: 400 12.5px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere; -webkit-user-select: text; user-select: text;
}
/* Staff pages (the admin app sets this class while it is open). */
body.admin-page > .site-legal-footer { display: none; }
.site-legal-footer p { margin: 0; }
.site-legal-footer__logo { display: block; height: 34px; width: auto; max-width: 100%; margin: 14px auto 16px; }
.site-legal-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-legal-footer a:focus-visible { outline: 2px solid #ffcc18; outline-offset: 2px; border-radius: 2px; }
/* While the loading screen covers the page (also with JavaScript off, or
   when loading fails), the footer sits on top of it, at the bottom. */
.startup-splash:not([data-phase="leaving"]) ~ .site-legal-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483001; background: #102c29;
}
/* Keep the loading screen's buttons clear of the footer. */
body:has(> .site-legal-footer) > .startup-splash:not([data-phase="leaving"]) {
  padding-bottom: calc(max(20px, env(safe-area-inset-bottom)) + 108px);
}
@media (max-width: 600px) {
  .site-legal-footer__sep { display: none; }
  .site-legal-footer__part { display: block; }
  body:has(> .site-legal-footer) > .startup-splash:not([data-phase="leaving"]) {
    padding-bottom: calc(max(20px, env(safe-area-inset-bottom)) + 172px);
  }
}
@media (max-height: 500px) {
  .site-legal-footer { padding-top: 7px; padding-bottom: max(7px, env(safe-area-inset-bottom)); line-height: 1.45; }
  body:has(> .site-legal-footer) > .startup-splash:not([data-phase="leaving"]) {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: calc(max(12px, env(safe-area-inset-bottom)) + 88px);
  }
}
