.terms-locked { overflow: hidden; }
#genform-app[inert] { user-select: none; }
.terms-pending {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  padding: max(32px, 15vh) 24px 24px;
  background: #f7f7f5;
  color: #252330;
  text-align: center;
  font: 16px/1.6 system-ui, sans-serif;
}
.terms-pending[hidden] { display: none; }
.terms-pending a { color: #5632aa; text-decoration: underline; }
.terms-dialog {
  box-sizing: border-box;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #e2dee9;
  border-radius: 24px;
  background: #fff;
  color: #252330;
  box-shadow: 0 24px 90px #19112840;
  font: 15px/1.5 system-ui, sans-serif;
  text-align: left;
  overscroll-behavior: contain;
}
.terms-dialog::backdrop { background: #211b35aa; backdrop-filter: blur(8px); }
.terms-dialog-content { padding: 28px; }
.terms-dialog * { box-sizing: border-box; }
.terms-logo { display: block; object-fit: contain; object-position: left; }
.terms-dialog .terms-eyebrow {
  margin: 22px 0 6px;
  color: #6843a6;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.terms-dialog h2 {
  margin: 0;
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.16;
}
.terms-dialog #terms-intro { margin: 10px 0 18px; color: #625d6c; }
.terms-summary { border-radius: 16px; padding: 16px; background: #f6f3fb; }
.terms-summary section { padding: 0; margin: 0; background: transparent; }
.terms-summary section + section { margin-top: 12px; }
.terms-summary h3 { margin: 0 0 3px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.terms-summary p { margin: 0; color: #565061; font-size: 13px; line-height: 1.5; }
.terms-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 8px 0; }
.terms-read { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.terms-dialog a { color: #5632aa; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
}
.terms-check input {
  appearance: auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 20px;
  accent-color: #6640be;
}
.terms-dialog .terms-feedback { margin: 4px 0; color: #9c2424; font-size: 13px; }
.terms-feedback:empty { display: none; }
.terms-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.terms-actions button {
  border: 1px solid #dcd5e7;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 48px;
  font: 650 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.terms-actions .terms-decline { background: white; color: #565061; }
.terms-actions .terms-accept { background: #6640be; border-color: #6640be; color: white; }
.terms-actions .terms-accept:disabled { opacity: .45; cursor: not-allowed; }
.terms-dialog .terms-storage { margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: #6e6778; }
.terms-dialog :focus-visible { outline: 3px solid #8560d4; outline-offset: 3px; }
@media (max-width: 480px) {
  .terms-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .terms-dialog-content { padding: 20px; }
  .terms-actions { flex-direction: column-reverse; }
  .terms-actions button { width: 100%; }
}
@media (forced-colors: active) {
  .terms-dialog { border: 2px solid CanvasText; }
  .terms-actions button:disabled { color: GrayText; opacity: 1; }
}
