


#terms {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - var(--sat) - var(--sab));
  overflow-y: auto;
  margin: auto;
  padding: 22px 22px 18px;
  border: none;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--body-text);
  box-shadow: var(--card-shadow);
  font-family: var(--font-ui);
}
#terms::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); }
#terms h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
#terms p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#terms .terms-links a { color: var(--accent-dark); margin-right: 14px; display: inline-block; min-height: 24px; }
#terms .terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 10px 0;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
#terms .terms-agree input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent-dark); }
#terms .terms-error { color: var(--fail); }
.terms-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.terms-buttons > * { min-height: 44px; }
#terms-continue { min-width: 112px; }
#terms-continue:disabled { opacity: .45; cursor: not-allowed; }
