/* Folio PDF — páginas institucionais, rodapé completo, menu mobile e aviso de cookies */

/* ---------- header: menu mobile */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); place-items: center; cursor: pointer; }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .header-inner { gap: 10px; }
  .header-cta { margin-left: auto; }
  .site-header.nav-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-header.nav-open .nav a { padding: 12px 12px; font-size: 15px; }
}

/* ---------- rodapé */
.site-footer { background: #fff; }
.footer-top { grid-template-columns: 1fr 2.6fr; }
.footer-brand p { max-width: 36ch; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.footer-contact a, .footer-contact > span { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.footer-contact a:hover { color: var(--brand); }
.footer-contact svg { color: var(--muted); width: 16px; height: 16px; }
.footer-cols { grid-template-columns: repeat(4, 1fr); }
.footer-linkbtn { display: block; padding: 5px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; text-align: left; }
.footer-linkbtn:hover { color: var(--brand); }
.footer-addr { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.footer-legal { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-legal p { font-size: 13px; color: var(--text-2); }
.footer-legal strong { font-weight: 600; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer-legal { flex-direction: column; }
}

/* ---------- páginas institucionais */
.inst-hero { padding: 64px 0 28px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.inst-eyebrow { font: 600 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.inst-hero h1 { font-family: var(--font); font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; max-width: 22ch; }
.inst-lede { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 64ch; margin-top: 16px; }
.inst-meta { font-size: 13px; color: var(--muted); margin-top: 18px; }
.inst-body { padding: 48px 0 88px; }

.inst-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.inst-text h2, .legal h2 { font-family: var(--font); font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 34px 0 12px; }
.inst-text h2:first-child { margin-top: 0; }
.inst-text p, .legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.inst-text p + p, .legal p + p { margin-top: 12px; }
.inst-text a, .legal a, .inst-dl a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.check-list, .dot-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232453e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.check-list strong { color: var(--text); }
.dot-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--text-2); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.inst-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-xs); position: sticky; top: calc(var(--header-h) + 20px); }
.inst-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.inst-card .btn { margin-top: 20px; width: 100%; justify-content: center; }
.inst-card .small { margin-top: 16px; font-size: 13px; }
.inst-dl { display: grid; gap: 4px; }
.inst-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.inst-dl dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }

.inst-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.inst-stats div { background: #fff; padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.inst-stats strong { font-family: var(--font); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.inst-stats span { font-size: 13.5px; color: var(--muted); }

/* contato */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.contact-card:hover { border-color: #b8c7f8; box-shadow: var(--shadow-sm); }
.contact-card > svg { width: 40px; height: 40px; padding: 10px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.contact-card strong { font-size: 15px; font-weight: 600; }
.contact-card span { font-size: 14.5px; line-height: 1.5; color: var(--text-2); word-break: break-word; }
.contact-card em { font-style: normal; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.contact-more { margin-top: 56px; }

/* documentos legais */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.legal-toc p { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); line-height: 1.35; }
.legal-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.legal { max-width: 760px; min-width: 0; }
.legal > section { scroll-margin-top: calc(var(--header-h) + 20px); padding: 0 0 14px; }
.legal > section:first-child h2 { margin-top: 0; }
.legal h2 span { color: var(--muted); font-weight: 500; }
.legal ul { padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--text-2); min-width: 130px; }
.legal-table th { background: var(--surface-2); font-weight: 600; color: var(--text); font-size: 13px; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-company { display: flex; gap: 14px; margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.legal-company > svg { color: var(--brand); margin-top: 3px; }
.legal-company strong { color: var(--text); }
.legal-company a { color: var(--brand); }

@media (max-width: 980px) {
  .inst-grid-2, .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
  .inst-card { position: static; }
  .inst-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .inst-hero { padding: 40px 0 22px; }
  .inst-lede { font-size: 16px; }
  .inst-body { padding: 32px 0 64px; }
  .inst-text h2, .legal h2 { font-size: 21px; }
  .inst-stats strong { font-size: 24px; }
  .inst-stats div { padding: 20px 16px; }
}

/* ---------- home: como funciona + empresa */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-xs); }
.how-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 15px var(--ui); margin-bottom: 16px; }
.how-step strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.how-step p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.company-band .company-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; box-shadow: var(--shadow-xs); }
.company-card h2 { font-family: var(--font); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.company-card p { color: var(--text-2); line-height: 1.65; margin-top: 10px; font-size: 15px; }
.company-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .company-band .company-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .company-links { justify-content: flex-start; }
}

/* ---------- aviso de cookies */
.cookie-box { position: fixed; z-index: 200; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-lg); font-family: var(--ui); animation: cookieIn .25s ease-out; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(12px); } }
.cookie-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.cookie-text { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.cookie-text a { color: var(--brand); text-decoration: underline; }
.cookie-opts { display: grid; gap: 10px; margin-top: 14px; padding: 14px; background: var(--surface-2); border-radius: 10px; }
.cookie-opts[hidden] { display: none; }
.cookie-opts label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.cookie-opts input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.cookie-opts b { color: var(--text); font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 640px) {
  .cookie-box { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 16px; }
}

/* âncoras não ficam escondidas atrás do header fixo */
html { scroll-padding-top: calc(var(--header-h) + 8px); }
