/* Ursa Ledger legal notice. Keep this file self-contained so game pages can load it too. */

html.ursa-legal-pending,
html.ursa-legal-pending body {
  overflow: hidden !important;
}

html.ursa-legal-pending body > *:not(#ursa-legal-root) {
  filter: blur(10px);
  pointer-events: none !important;
  user-select: none !important;
}

#ursa-legal-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

#ursa-legal-root *,
#ursa-legal-root *::before,
#ursa-legal-root *::after {
  box-sizing: border-box;
}

#ursa-legal-root .ursa-legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#ursa-legal-root .ursa-legal-dialog {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff8ea;
  color: #16132a;
  border: 2px solid #c9a15b;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 22px 20px 20px;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  #ursa-legal-root .ursa-legal-dialog {
    font-size: 17px;
    padding: 20px 16px 18px;
    border-radius: 18px;
  }
}

#ursa-legal-root .ursa-legal-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5a1a;
}

#ursa-legal-root h2 {
  margin: 0 0 12px;
  font-family: Cormorant, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.15;
  color: #16132a;
}

#ursa-legal-root .ursa-legal-body {
  margin: 0 0 14px;
}

#ursa-legal-root .ursa-legal-body p {
  margin: 0 0 12px;
  color: #16132a;
}

#ursa-legal-root .ursa-legal-body p:last-child {
  margin-bottom: 0;
}

#ursa-legal-root a {
  color: #6b4a12;
  font-weight: 700;
  text-decoration: underline;
}

#ursa-legal-root a:hover,
#ursa-legal-root a:focus-visible {
  color: #16132a;
}

#ursa-legal-root .ursa-legal-links {
  margin: 0 0 16px;
  font-size: 1em;
}

#ursa-legal-root .ursa-legal-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 2px solid #c9a15b;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

#ursa-legal-root .ursa-legal-check input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: #c9a15b;
  cursor: pointer;
}

#ursa-legal-root .ursa-legal-check span {
  flex: 1 1 auto;
  font-weight: 700;
  color: #16132a;
  font-size: 1em;
  line-height: 1.4;
}

#ursa-legal-root .ursa-legal-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #c9a15b;
  color: #1a1208;
  font: 700 1.05em/1 Manrope, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

#ursa-legal-root .ursa-legal-enter:hover:not(:disabled) {
  filter: brightness(1.06);
}

#ursa-legal-root .ursa-legal-enter:disabled,
#ursa-legal-root .ursa-legal-enter[aria-disabled="true"] {
  background: #cfc6b0;
  color: #5c5648;
  cursor: not-allowed;
  filter: none;
}

#ursa-legal-root .ursa-legal-dialog:focus,
#ursa-legal-root .ursa-legal-enter:focus-visible,
#ursa-legal-root .ursa-legal-check input:focus-visible,
#ursa-legal-root a:focus-visible {
  outline: 3px solid #16132a;
  outline-offset: 3px;
}

.ursa-legal-footer {
  margin: 24px 0 0;
  padding: 16px;
  text-align: center;
  font: 14px/1.5 Manrope, "Segoe UI", system-ui, sans-serif;
  color: inherit;
}

.ursa-legal-footer a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}
