.legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  margin: 18px 0;
  padding: 4px;
}
nav.legal-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #48cddd;
  border-radius: 6px;
  background: linear-gradient(135deg, #10232f, #111421);
  box-shadow: inset 0 0 12px #32c4e010, 0 0 12px #32c4e01f;
  color: #c3f9ff;
  font: 650 15px/1.4 system-ui, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  overflow-wrap: anywhere;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
nav.legal-actions > a:nth-child(2) {
  border-color: #df70c6;
  background: linear-gradient(135deg, #25142d, #151322);
  box-shadow: inset 0 0 12px #ed62ca10, 0 0 12px #ed62ca1f;
  color: #ffe0f6;
}
nav.legal-actions > a:hover {
  border-color: #c3f9ff;
  color: #fff;
  background: #1c2840;
  box-shadow: 0 0 18px #48cddd40;
}
nav.legal-actions > a:nth-child(2):hover {
  border-color: #ffe0f6;
  background: #30203b;
  box-shadow: 0 0 18px #df70c640;
}
nav.legal-actions > a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
nav.legal-actions > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.has-legal-dock {
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
}
.legal-actions--dock {
  position: fixed;
  z-index: 110;
  right: 14px;
  bottom: max(10px, env(safe-area-inset-bottom));
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 8px;
  border: 1px solid #674778;
  border-radius: 8px;
  background: #080b16;
  box-shadow: 0 8px 26px #0008;
}
.has-legal-dock .to-top { bottom: calc(100px + env(safe-area-inset-bottom)); }
body.has-legal-dock.player-visible { padding-bottom: calc(216px + env(safe-area-inset-bottom)); }
.has-legal-dock.player-visible .legal-actions--dock { bottom: calc(124px + env(safe-area-inset-bottom)); }
.has-legal-dock.player-visible .to-top { bottom: calc(216px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .legal-actions--dock { right: 10px; left: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { nav.legal-actions > a { transition: none; } }
@media print { .legal-actions--dock { position: static; } body.has-legal-dock { padding-bottom: 0; } }
