.page-footer { margin-top: 32px; font-size: 12px; }
.page-footer a { text-decoration-color: transparent; }
.page-footer a:hover, .page-footer a:focus { text-decoration-color: currentColor; }
body.legal-open { overflow: hidden; }

.legal-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: clamp(24px, 5vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: inherit;
  background: var(--legal-background, #15201b);
  border: 1px solid #c7af7d40;
  border-radius: 8px;
  box-shadow: 0 24px 90px #0007;
  text-align: left;
}
.legal-dialog::backdrop { background: #080b09b8; backdrop-filter: blur(5px); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.legal-header h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 700; }
.legal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c7af7d40;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.legal-close:hover { background: #c7af7d18; }
.legal-close:focus-visible { outline: 2px solid #edc477; outline-offset: 3px; }
.legal-content h3 { margin: 24px 0 12px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; max-width: none; font-size: 15px; line-height: 1.7; }
.legal-content p:last-child { margin-bottom: 0; }
