/* The agreement uses the practice app's shared appearance and language controls. */
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.65 var(--font); }
::selection { background: var(--selection); color: var(--selection-ink); }
[hidden] { display: none !important; }
.agreement-page { width: min(100%, 800px); margin: auto; padding: 28px 24px 48px; }
.agreement-header, .appearance-controls { display: flex; align-items: center; gap: 12px; }
.agreement-header { justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.app-name { font-weight: 650; }
h1 { font-size: clamp(28px, 4.5vw, 32px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; text-wrap: balance; }
p { margin: 0 0 14px; }
section { margin-top: 28px; }
section p:last-child, .personal-note p:last-child { margin-bottom: 0; }
.personal-note { background: var(--accent-soft); padding: 20px 24px; border-radius: var(--radius); margin-top: 24px; }
.personal-note strong { display: block; margin-bottom: 6px; }
.consent-form { margin-top: 32px; background: var(--surface); padding: 24px; border-radius: var(--radius); }
.consent-choice { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.consent-choice input { width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.consent-actions button, .return-link { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 6px; font: 600 16px/1.5 var(--font); cursor: pointer; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: var(--accent-on); }
.primary:hover:not(:disabled) { background: var(--accent-deep); }
.secondary { background: var(--accent-soft); color: var(--ink); }
.secondary:hover { background: var(--surface-hover); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:active:not(:disabled), .return-link:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.help, footer { font-size: 14px; color: var(--ink-2); }
.help { margin-top: 14px; margin-bottom: 0; }
.agreement-status { margin-top: 16px; margin-bottom: 0; }
.review-actions { margin-top: 32px; }
.return-link { display: inline-block; }
footer { margin-top: 32px; }
.reference-links { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 8px; margin-bottom: 12px; }
@media (max-width: 480px) {
  .agreement-page { padding: 20px 20px 36px; }
  .agreement-header { gap: 16px; margin-bottom: 28px; }
  .personal-note, .consent-form { padding: 20px; }
  .consent-actions { flex-direction: column; }
  .consent-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  button:active:not(:disabled), .return-link:active { transform: none; }
}
