/* Demo Terms pages (agree and read-only) on the sign-in look. Text and version come from DemoTerms. */
body.signin-v2 .si2-wrap:has(.demo-terms-shell) { display: block; padding-bottom: 0; }
.demo-terms-shell { max-width: 760px; margin: 0 auto; padding: 0 0 8px; }
.demo-terms-head { text-align: left; margin: 0 0 14px; }
.demo-terms-logo { height: 44px; max-width: 200px; object-fit: contain; display: block; margin: 0 0 12px; }
.demo-terms-head h2 { margin: 0 0 4px; font-size: var(--type-h1); line-height: 1.2; font-weight: 600; color: var(--si-ink, #101828); }
.demo-terms-head p { margin: 0; font-size: 18px; color: var(--si-muted, #475467); }
.demo-terms-card {
    border: 1px solid var(--si-line, #d0d5dd);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.demo-terms-scroll { max-height: 55vh; overflow-y: auto; padding: 20px 24px; font-size: 16px; line-height: 1.6; }
.demo-terms-scroll--read { max-height: none; }
.demo-terms-scroll h1 { font-size: var(--type-h2); font-weight: 600; margin: 0 0 6px; }
.demo-terms-scroll p { margin: 0 0 12px; }
.demo-terms-scroll p > strong:first-child { color: var(--si-ink, #101828); }
.demo-terms-scroll li { margin-bottom: 4px; }
.demo-terms-scroll .demo-terms-draft { margin-bottom: 12px; }
.demo-terms-bar {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 12px -16px 0;
    padding: 12px 16px;
    border-top: 1px solid var(--si-line, #d0d5dd);
    background: #fff;
}
.demo-terms-bar-row { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.demo-terms-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; margin: 0; }
.demo-terms-check input[type="checkbox"] { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
.demo-terms-actions { display: flex; align-items: center; gap: 16px; }
.demo-terms-actions .btn-primary { width: auto; min-width: 180px; }
.demo-terms-actions .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.demo-terms-signout { font-weight: 600; }
.demo-terms-error {
    max-width: 760px;
    margin: 0 auto 10px;
    padding: 10px 14px;
    border: 1px solid #fda29b;
    border-radius: 10px;
    background: #fef3f2;
    color: #912018;
}
@media (max-width: 575.98px) {
    .demo-terms-actions { width: 100%; justify-content: space-between; }
    .demo-terms-actions .btn-primary { flex: 1; }
    .demo-terms-scroll { padding: 16px; }
}
