/* PÁGINAS INSTITUCIONAIS E LEGAIS (prefixo inst-). Componentes em ds-base.css. Mobile-first. */
.site-footer { margin-top: 0; }
.inst-topo { background: var(--ds-paper); border-bottom: 1px solid var(--ds-paper-line); padding-bottom: var(--space-6); }
.inst-titulo { margin: var(--space-4) 0 0; font-size: clamp(2rem, 1.4rem + 2.7vw, 3.25rem); line-height: 1.06; letter-spacing: -.026em; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
.inst-data { margin: var(--space-3) 0 0; font-size: .9375rem; color: var(--ink-2); }
.inst-corpo { padding-block: var(--space-6) var(--ds-section); }

/* Texto */
.inst-texto { min-width: 0; max-width: 720px; }
.inst .content-area { max-width: none; padding: 0; margin: 0; overflow-wrap: break-word; }
.inst .content-area > :first-child { margin-top: 0; }
.inst .content-area h2 { margin: var(--space-10) 0 var(--space-3); padding: 0; border: 0; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.014em; font-weight: 600; text-wrap: balance; }
.inst .institutional-page .content-area h2:first-of-type { margin-top: var(--space-10); }   /* vence o style.css */
.inst .institutional-page .content-area > h2:first-child { margin-top: 0; }
.inst .content-area h3 { margin: var(--space-6) 0 var(--space-2); font-size: 1.1875rem; line-height: 1.3; font-weight: 600; }
.inst .content-area h2 + h3 { margin-top: var(--space-4); }
.inst .content-area p { margin: 0 0 var(--space-4); line-height: 1.65; }
.inst .content-area ul, .inst .content-area ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.inst .content-area li { margin-bottom: var(--space-2); line-height: 1.6; }
.inst .content-area .table-wrap { margin: 0 0 var(--space-5); }
.inst .content-area table { min-width: 520px; }

/* Índice */
.inst-indice { margin-bottom: var(--space-6); max-width: 720px; }
.inst-indice details { border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); }
.inst-indice summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-inline: var(--space-4); font-weight: 600; cursor: pointer; list-style: none; }
.inst-indice summary::-webkit-details-marker { display: none; }
.inst-indice summary::after { content: ""; width: 8px; height: 8px; border: solid var(--brand-600); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
.inst-indice details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.inst-indice ul { list-style: none; padding: 0 var(--space-4) var(--space-3); }
.inst-indice a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; color: var(--ink-2); font-size: .9375rem; line-height: 1.35; }
.inst-indice a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) {
  .inst--indice .inst-corpo { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: var(--space-12); align-items: start; padding-top: var(--space-10); }
  .inst-indice { position: sticky; top: 96px; margin: 0; max-height: calc(100vh - 120px - var(--ck-alto, 0px)); overflow-y: auto; scrollbar-width: thin; }
  .inst-indice details { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .inst-indice summary { min-height: 36px; font-size: .875rem; }
  .inst-indice a { min-height: 36px; font-size: .875rem; }
  .inst-corpo { padding-top: var(--space-10); }
}

/* Contato */
.inst .wpcf7 { max-width: none; margin-block: var(--space-4) var(--space-5); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); }
.inst .wpcf7-form > p { margin: 0 0 var(--space-4); }
.inst .wpcf7-form label { margin: 0; font-weight: 600; font-size: .9375rem; }
.inst .wpcf7-form label br { display: none; }
.inst .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.inst .wpcf7-form input.wpcf7-text, .inst .wpcf7-form textarea.wpcf7-textarea { width: 100%; border: 1.5px solid #7C8DA1; font-size: 1rem; font-weight: 400; }
.inst .wpcf7-form input.wpcf7-text:focus, .inst .wpcf7-form textarea.wpcf7-textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-300); }
.inst .wpcf7-form .wpcf7-form-control.wpcf7-not-valid { border-color: #B3261E; }
.inst .wpcf7-form .wpcf7-form-control.wpcf7-not-valid:focus { border-color: #B3261E; box-shadow: 0 0 0 3px #F3C6C2; }
.inst .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: .875rem; font-weight: 500; color: #B3261E; }
.inst .wpcf7-submit { min-height: 48px; padding-inline: var(--space-8); border: 0; border-radius: var(--radius-pill); background: var(--brand-600); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; }
.inst .wpcf7-submit:hover { background: var(--brand-700); }
.inst .wpcf7-submit:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.inst .wpcf7 form .wpcf7-response-output { margin: var(--space-4) 0 0; font-weight: 500; font-size: .9375rem; border-radius: 10px; }
.inst-form-nota { font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 600px) {
  .inst .wpcf7 { padding: var(--space-6); }
  .inst .wpcf7-submit { width: auto; min-width: 200px; }
}

/* Outras páginas */
.inst-outras { background: var(--ds-paper); border-top: 1px solid var(--ds-paper-line); padding-block: var(--space-6); }
.inst-outras__titulo { margin-bottom: var(--space-3); font-size: 1.1875rem; }
@media print { .inst-indice, .inst-outras { display: none; } }
