/* The agreement pages: /agreement, /agreement/signed, /team/terms and /team/terms/signed.
   Builds on app.css (.agree-part, .agree-ticks, .prose, .facts, .pill); only what those lack is here. */

/* Space between the blocks inside a part and a section (beats app.css's `p, h2, ul { margin: 0 }` reset). */
.agree-part > * + * { margin-top: 12px; }
.agree-sec > * + * { margin-top: 6px; }
.agree-sec + .agree-sec { margin-top: 20px; }
.agree-part > .agree-ticks { margin-top: 16px; }
/* jumps to a part land below the sticky header: app.css's html scroll-padding-top does it for every page */
.agree-doc + .agree-part, .agree-copy > * + * { margin-top: 16px; }

/* The list of parts at the top: big enough to tap. */
.agree-toc { margin-bottom: 16px; }
.agree-toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agree-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--rule); font-size: 13px; font-weight: 500; text-decoration: none; }
.agree-toc a:hover { border-color: var(--rule-3); }

/* Notes and the error summary above the document. */
.agree-notes { display: grid; gap: 12px; margin-bottom: 16px; }
.agree-notes:empty { display: none; }

/* The signature card: its forest border. */
.agree-sign { border-color: var(--forest); }
.agree-sign .h4 { margin-top: 20px; }
.agree-sign .form-grid { margin-top: 12px; }

/* Signed copies. */
.agree-record { margin-bottom: 16px; }
.agree-hash { font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.signed-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.signed-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.signed-ticks .pill { flex: none; }
.agree-after { margin-top: 24px; }

@media print {
  /* app.css hides every form when printing; the agreement itself sits inside the sign form, so show it. */
  form.agree-form { display: block !important; }
  .agree-toc, .agree-after, .agree-notes { display: none; }
  .agree-part { break-inside: auto; padding: 12px 0; border-radius: 0; }
  .agree-sec { break-inside: avoid; }
  .agree-sign { box-shadow: none; border-top: 1px solid #000; }
  .pill { background: none; border: 1px solid currentColor; }
  .agree-record { background: none; border: 1px solid #999; }
}
