/* Contrato (renderizado para PDF, largura A4 = 794px) */
.ct {
  width: 794px; background: #F4E7D1; color: #211B19; font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.55;
  padding: 0 62px 10px;
}
.ct * { box-sizing: border-box; }
.ct-cab { display: flex; align-items: center; gap: 28px; padding: 14px 0 18px; }
.ct-cab img { width: 118px; height: auto; flex: none; }
.ct-cab .t1 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: #99151C; margin: 0 0 4px; font-weight: 500; }
.ct-cab h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 46px; line-height: .95; color: #C51F2C; margin: 0 0 10px; letter-spacing: .01em; }
.ct-meta { display: flex; gap: 0; font-size: 11px; }
.ct-meta div { padding-right: 16px; margin-right: 16px; border-right: 1px solid rgba(33,27,25,.25); }
.ct-meta div:last-child { border: 0; }
.ct-meta b { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; color: #99151C; font-weight: 500; }
.ct-meta span { font-weight: 700; font-size: 13px; }
.ct-listras { height: 10px; background: repeating-linear-gradient(-55deg, #C51F2C 0 6px, transparent 6px 12px); margin-bottom: 18px; }

.ct-sec { margin: 0 0 18px; }
.ct-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ct-h .n { background: #C51F2C; color: #F4E7D1; font-family: 'Bebas Neue', sans-serif; font-size: 18px; line-height: 1; padding: 6px 7px 4px; }
.ct-h h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 25px; color: #C51F2C; margin: 0; line-height: 1; letter-spacing: .02em; }
.ct-h::after { content: ''; flex: 1; border-bottom: 1.5px dotted rgba(33,27,25,.45); margin-left: 6px; }

.ct-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-box { background: #fffaf1; border-radius: 8px; padding: 12px 14px; border-left: 4px solid #C51F2C; }
.ct-box .r { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; color: #99151C; font-weight: 600; margin: 0 0 4px; }
.ct-box p { margin: 0; }
.ct-box .nm { font-weight: 700; font-size: 14px; }

.ct-ev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ct-ev div { background: #fffaf1; border-radius: 8px; padding: 8px 12px; }
.ct-ev div.w2 { grid-column: span 2; }
.ct-ev div.w4 { grid-column: span 4; }
.ct-ev b { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; color: #99151C; font-weight: 500; }
.ct-ev span { font-weight: 600; font-size: 13px; }

.ct-tab { width: 100%; border-collapse: collapse; background: #fffaf1; border-radius: 8px; overflow: hidden; }
.ct-tab th { background: #211B19; color: #F4E7D1; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 500; padding: 8px 10px; text-align: left; }
.ct-tab th.r, .ct-tab td.r { text-align: right; }
.ct-tab td { padding: 7px 10px; border-bottom: 1px solid #EADBC0; vertical-align: top; }
.ct-tab td small { display: block; color: #6b5f58; font-size: 10.5px; }
.ct-tab tr.cat td { background: #EADBC0; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 600; color: #99151C; padding: 5px 10px; }
.ct-tot { display: flex; justify-content: flex-end; margin-top: 10px; gap: 12px; align-items: stretch; }
.ct-tot .linhas { min-width: 250px; background: #fffaf1; border-radius: 8px; padding: 8px 14px; }
.ct-tot .linhas div { display: flex; justify-content: space-between; padding: 2px 0; }
.ct-tot .big { background: #C51F2C; color: #F4E7D1; border-radius: 8px; padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; min-width: 200px; }
.ct-tot .big b { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 500; }
.ct-tot .big span { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1; }
.ct-tot .big small { font-size: 10px; opacity: .85; }
.ct-ext { text-align: right; font-size: 11px; color: #4a403b; margin: 6px 0 0; font-style: italic; }

.ct-pg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-pg div { background: #fffaf1; border-radius: 8px; padding: 10px 14px; }
.ct-pg b { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; color: #99151C; font-weight: 500; }
.ct-pg span { font-weight: 700; font-size: 15px; }
.ct-pg div.w2 { grid-column: span 2; }
.ct-pg div.w2 span { font-size: 12.5px; font-weight: 500; }

.ct-cl { margin: 0 0 8px; text-align: justify; }
.ct-cl b { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: #C51F2C; font-weight: 600; margin-right: 4px; }
.ct-obs { background: #fffaf1; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; }

.ct-ass-local { margin: 4px 0 40px; }
.ct-ass { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 46px; }
.ct-ass div { border-top: 1.5px solid #211B19; padding-top: 6px; text-align: center; font-size: 11.5px; }
.ct-ass b { display: block; font-size: 12.5px; }
.ct-ass small { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 9.5px; color: #99151C; }
.ct-fim { text-align: center; margin-top: 28px; }
.ct-fim img { width: 54px; height: auto; margin: 0 auto 4px; display: block; }
.ct-fim p { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .3em; font-size: 10px; color: #C51F2C; margin: 0; }
.ct-pix { display: flex; gap: 16px; align-items: center; background: #fffaf1; border-radius: 8px; padding: 12px 14px; margin-top: 8px; border-left: 4px solid #1f9d55; break-inside: avoid; }
.ct-pix img { width: 120px; height: 120px; flex: none; image-rendering: pixelated; }
.ct-pix b { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; color: #99151C; font-weight: 600; }
.ct-pix p { margin: 4px 0 6px; font-size: 11.5px; }
.ct-pix small { display: block; font-size: 9.5px; color: #6b5f58; text-transform: uppercase; letter-spacing: .1em; }
.ct-pix code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 8.5px; word-break: break-all; color: #4a403b; line-height: 1.35; }
