:root {
  color-scheme: dark;
  --bg: #07111a;
  --panel: #101d28;
  --line: #2c4050;
  --text: #e7edf2;
  --muted: #aebbc6;
  --orange: #f0a24a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
a {
  color: #8cc9ff;
}
.legal-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 0, #193044 0, #07111a 55%);
}
.legal-card {
  width: min(580px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 29, 40, 0.97);
  box-shadow: 0 24px 70px #0008;
}
.legal-card img,
.legal-document header img {
  width: 220px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.eyebrow {
  margin: 22px 0 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.legal-card h1 {
  margin: 0.1em 0 0.4em;
  font-size: 30px;
}
.legal-card label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-weight: 650;
}
.legal-card .form-label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.legal-card input,
.security-form input,
.security-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #445b6d;
  border-radius: 6px;
  background: #07111a;
  color: #fff;
  font: inherit;
}
.primary {
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.legal-card .primary {
  width: 100%;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form-message {
  min-height: 24px;
  color: #ffae8f;
}
.security-note {
  padding: 12px;
  border-left: 3px solid var(--orange);
  background: #0a1620;
  color: var(--muted);
}
.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.legal-links.compact {
  font-size: 13px;
}
.accept-check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
}
.accept-check input {
  width: 18px;
  height: 18px;
}
.link-button {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: #aac4da;
  cursor: pointer;
}
.legal-document header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(20px, calc((100vw - 900px) / 2));
  border-bottom: 1px solid var(--line);
  background: #0b1721;
}
.legal-document main {
  width: min(900px, calc(100% - 36px));
  margin: 40px auto 70px;
}
.legal-document h1 {
  font-size: 42px;
  line-height: 1.1;
}
.legal-document h2 {
  margin-top: 32px;
  color: #f1f5f8;
}
.legal-document p {
  color: #c3cdd5;
}
.legal-document footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: #99a7b2;
}
.notice-box {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #754d27;
  background: #25190f;
  color: #ffc786;
}
.security-panel {
  margin-bottom: 18px;
  padding: 18px;
}
.security-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.security-form label {
  display: grid;
  gap: 4px;
}
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #263948;
}
.security-row small {
  display: block;
  color: #9eacb8;
}
.event-row {
  display: grid;
  grid-template-columns: 180px 1fr 120px 140px;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid #263948;
  font-size: 13px;
}
.event-row strong {
  text-transform: capitalize;
}
.uc-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #355066;
  border-radius: 12px;
  background: #101d28;
  color: var(--text);
  box-shadow: 0 28px 90px #000c;
}
.uc-dialog::backdrop {
  background: #02080dcc;
  backdrop-filter: blur(2px);
}
.uc-dialog form {
  padding: 0 0 0;
}
/* Header bar / body / footer bar, matching the user-menu dialogs. */
.uc-dialog > form > :not(header):not(footer) {
  margin-inline: 22px;
}
.uc-dialog > form > header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 38px;
  margin: 0 0 14px;
  padding: 14px 70px 14px 22px;
}
.uc-dialog > form > header .eyebrow {
  color: var(--teal, #19e6c0);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.uc-dialog header .eyebrow {
  margin: 0 0 4px;
}
.uc-dialog h3 {
  margin: 0;
  font-size: 20px;
}
.uc-dialog-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #355066;
  border-radius: 8px;
  background: #0b1722;
  color: #c7d5e2;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.uc-dialog-close:hover,
.uc-dialog-close:focus-visible {
  border-color: var(--teal, #19e6c0);
  color: var(--teal, #19e6c0);
}
.uc-dialog label {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  font-weight: 650;
}
.uc-dialog input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #445b6d;
  border-radius: 6px;
  background: #07111a;
  color: #fff;
  font: inherit;
}
.uc-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 22px 0 0;
  padding: 14px 22px;
}
.uc-dialog-message {
  min-height: 24px;
  margin: 8px 0 0;
  color: #ffae8f;
}
@media (max-width: 900px) {
  .security-form {
    grid-template-columns: 1fr 1fr;
  }
  .event-row {
    grid-template-columns: 1fr 1fr;
  }
  .legal-document h1 {
    font-size: 34px;
  }
}

.legal-card .auth-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
