button[data-partner-legal] {
  border: 0;
  border-radius: 0;
  margin: 0;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.ker-partner-invite-page .ker-global-footer nav { align-items: center; }
.ker-partner-invite-page .ker-global-footer button[data-partner-legal] {
  color: #e9dcc2;
  font: 14px/1.4 system-ui, sans-serif;
}
#signupTerms .signup-check { margin-top: 14px; }
#signupTerms label { margin: 0; font-weight: inherit; }
.ker-legal-links { margin: 0 0 0 26px; color: #674b18; }
.ker-legal-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 24px), 680px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #b7ae97;
  border-radius: 18px;
  background: #fff9ec;
  color: #17241c;
  text-align: start;
  font: 1rem/1.6 system-ui, sans-serif;
}
.ker-legal-dialog[open] { display: flex; flex-direction: column; }
.ker-legal-dialog::backdrop { background: #0009; }
.ker-legal-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #d9ccaf;
}
.ker-legal-dialog h2 { margin: 0; font: 500 clamp(1.4rem, 5vw, 2rem)/1.15 Georgia, serif; }
.ker-legal-dialog button {
  margin: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #b7ae97;
  border-radius: 8px;
  background: #eee8d8;
  color: #17241c;
  font: inherit;
  cursor: pointer;
}
.ker-legal-content { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 16px; }
.ker-legal-content h3 { margin: 1em 0 0; }
