.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: block; width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.doc-body { scroll-margin-top: 24px; }

/* Cabeçalho do documento */
.doc-meta { margin: 36px 0 0; border-top: 2px solid var(--ink); }
.doc-meta-row { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.doc-meta dt { color: var(--ink-soft); font-size: .9375rem; font-weight: 500; }
.doc-meta dd { margin: 0; font-weight: 500; line-height: 1.4; }
.doc-meta-count dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.count strong { margin-right: 4px; font-size: 2.75rem; font-stretch: 68%; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.count-link { font-size: 1rem; font-weight: 600; }
.stats-status { margin-top: 12px; color: var(--ink-soft); font-size: .9375rem; }

/* Formulário */
.signature-form, .success-panel { margin-top: clamp(44px, 5vw, 60px); }
.form-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.form-group + .form-group { margin-top: clamp(44px, 5vw, 60px); }
.form-group legend { padding: 0; font-size: 1.625rem; font-stretch: 82%; font-weight: 700; line-height: 1.15; letter-spacing: -.012em; }
.group-hint { margin: 6px 0 18px; color: var(--ink-soft); font-size: 1rem; }

.signature-form input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 24px; height: 24px; margin: 1px 0 0;
  border: 2px solid var(--ink); border-radius: 3px;
  background: var(--paper) center / 74% no-repeat; cursor: pointer;
}
.signature-form input[type="checkbox"]:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.signature-form input[type="checkbox"]:checked {
  border-color: var(--green); background-color: var(--green); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='square'%3E%3Cpath d='m5.2 12.6 4.4 4.4 9.2-9.6'/%3E%3C/svg%3E");
}
.signature-form input[type="checkbox"][aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* Reivindicações: tabela de duas linhas, texto na voz do documento */
.claims { border-top: 2px solid var(--ink); }
.choice { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; padding-block: 20px 22px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.choice input[type="checkbox"] { width: 28px; height: 28px; }
.choice:has(input:checked)::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -14px; width: 4px; background: var(--green); }
.choice-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-soft); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.choice-count { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-text { display: block; margin-top: 7px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.38; }

.field-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.field select:has(option:checked[value=""]) { color: var(--ink-soft); }

.sensitive-note { max-width: 40em; margin: 14px 0 22px; padding: 2px 0 2px 16px; border-left: 3px solid var(--field); font-size: 1rem; line-height: 1.5; }
.plain-choice { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; max-width: 44em; margin-top: 18px; font-size: 1rem; line-height: 1.55; cursor: pointer; }
.plain-choice small { color: var(--ink-soft); font-size: .9375rem; }

.captcha-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.captcha-image { display: grid; place-items: center; width: 190px; height: 58px; overflow: hidden; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); color: var(--ink-soft); font-size: .9375rem; }
.captcha-image img { display: block; width: 188px; height: 56px; }
.captcha-actions { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--green); font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.text-button:hover { color: var(--green-strong); text-decoration-thickness: 2px; }
.text-button:disabled { color: var(--ink-soft); text-decoration: none; cursor: wait; }
.captcha-status { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.captcha-status:empty { display: none; }
.captcha-field { max-width: 208px; margin-top: 18px; }
.captcha-field input { font-size: 1.25rem; letter-spacing: .22em; font-variant-numeric: lining-nums tabular-nums; }

.notice { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--red); color: var(--red); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.field > .notice { margin-top: 2px; }
.group-hint + .notice { margin: 0 0 16px; }
.submit-button { min-height: 60px; margin-top: 40px; padding-inline: 36px; font-size: 1.125rem; }
.notice:not([hidden]) + .submit-button { margin-top: 24px; }
.signature-form[aria-busy="true"] .submit-button:disabled { opacity: 1; cursor: progress; }

/* Assinatura registrada */
.success-panel { padding-top: 32px; border-top: 2px solid var(--ink); }
.success-panel:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--green); color: #fff; }
.success-mark .icon { width: 28px; height: 28px; stroke-width: 2.8; stroke-linecap: square; }
.success-panel h2 { max-width: 15em; margin-top: 22px; font-size: clamp(1.75rem, 5.4vw, 2.5rem); }
.success-text { max-width: 34em; margin-top: 12px; font-size: 1.1875rem; line-height: 1.45; }
.share { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.share h3 { font-size: 1.375rem; }
.share > p { margin-top: 6px; color: var(--ink-soft); }
.share .button-row { margin-top: 20px; }
.share .share-status { margin-top: 14px; color: var(--ink); font-weight: 600; }
.share-manual { max-width: 30rem; margin-top: 16px; }
.success-more { margin-top: 28px; font-weight: 600; }

/* Perguntas frequentes */
.faq { margin-top: clamp(64px, 8vw, 96px); }
.faq h2 { margin-bottom: 18px; font-size: 1.625rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 17px; font-weight: 600; line-height: 1.35; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; }
.faq summary:hover { color: var(--green-strong); }
.faq details p { max-width: 38em; padding-bottom: 20px; }

@media (max-width: 560px) {
  .doc-head .doc-lead { display: none; }
  .doc-meta { margin-top: 26px; }
  .doc-meta-row { grid-template-columns: minmax(0, 1fr); row-gap: 1px; padding-block: 11px; }
  .count { white-space: nowrap; }
  .count strong { font-size: 2.25rem; }
  .form-group legend, .faq h2 { font-size: 1.5rem; }
  .choice { column-gap: 14px; }
  .choice-text { font-size: 1.25rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .submit-button { width: 100%; }
  .share .button { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .count { white-space: normal; }
  .count strong { font-size: 2rem; }
}
@media (forced-colors: active) {
  .signature-form input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; }
  .faq summary::after { content: "+"; width: auto; height: auto; background: none; font-weight: 700; }
  .faq details[open] summary::after { content: "−"; background: none; }
}
