.legal-page { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); }
.legal-page main { max-width: 48rem; margin-inline: auto; }
.legal-page header, .legal-page nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.legal-page header { justify-content: space-between; margin-block-end: 1.25rem; }
.legal-brand { font-size: 1.35rem; font-weight: 700; }
.legal-page article { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--brand-card); border: 1px solid var(--line); border-radius: 1.15rem; }
.legal-page h1 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin-block: 0 1rem; }
.legal-page h2 { font-size: 1.15rem; margin-block: 1.35rem .35rem; }
.legal-page p { line-height: 1.8; margin-block: .45rem .85rem; }
.legal-page nav { margin-block-start: 1.25rem; }
.legal-page a:not(.button, .contact-icon, .legal-brand) { color: var(--primary-dark); text-decoration: underline; }
.legal-page form { max-width: 32rem; }
.legal-page .button { margin-block: .5rem; }
.legal-page .field { margin-block: .65rem; }
.legal-page [role="status"]:empty { display: none; }
.legal-page [data-error] { color: var(--danger, #9d221d); }
.auth-legal { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.auth-legal a { text-decoration: underline; }
.publish-terms { display: block; margin-block: .7rem; }
.publish-terms a { text-decoration: underline; }
.signup-terms { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; margin-block: .45rem .8rem; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.signup-terms input[type="checkbox"] { appearance: none; display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--muted); border-radius: .35rem; background: var(--brand-card); color: #fff; cursor: pointer; }
.signup-terms input[type="checkbox"]:is(:hover, :checked) { border-color: var(--primary); }
.signup-terms input[type="checkbox"]:checked { background: var(--primary); }
.signup-terms input[type="checkbox"]:checked::after { content: ""; width: .32rem; height: .58rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.signup-terms input[type="checkbox"]:user-invalid { border-color: #b83150; }
.signup-terms label { cursor: pointer; }
.signup-terms a { font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
@media (forced-colors: active) {
  .signup-terms input[type="checkbox"] { appearance: auto; }
  .signup-terms input[type="checkbox"]:checked::after { content: none; }
}
