@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }

/* Segue o padrão visual do site institucional (corecomm.com.br) */
:root {
	--blue: #0866ff;
	--blue-dark: #0050d3;
	--bar: #477cf7;
	--ink: #0f2128;
	--text: #161616;
	--muted: #666666;
	--line: #ececec;
	--soft: #f1f3f6;
	--pend-bg: #fff3bf;
	--pend-ink: #5c4500;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue-dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }

/* Cabeçalho */
.topbar { position: relative; z-index: 10; background: #fff; height: 80px; }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 42px; width: auto; display: block; }
.nav { display: flex; align-items: center; }
.nav a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 14px; border-left: 2px solid var(--blue); line-height: 1; }
.nav a:first-child { border-left: 0; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }

@media (max-width: 760px) {
	.topbar-in { padding: 0 16px; }
	.brand img { height: 36px; }
	.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--blue); cursor: pointer; border-radius: 8px; }
	.menu-btn svg { width: 28px; height: 28px; }
	.nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(15, 33, 40, 0.1); }
	.nav a { border-left: 0; padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
	.topbar.aberto .nav { display: flex; }
}

/* Faixa de sombra suave sob o cabeçalho */
.shade { height: 56px; background: linear-gradient(#e9ebef, #fff); }

/* Conteúdo */
.page-title { color: var(--blue); text-align: center; font-size: clamp(34px, 6vw, 52px); line-height: 1.15; margin: 8px 16px 56px; font-weight: 700; letter-spacing: -0.01em; }
.doc { max-width: 1100px; margin: 0 auto; padding: 0 24px 72px; }
.updated { margin: 0 0 20px; }
.updated strong { color: #000; }

h2 { color: var(--ink); font-size: clamp(26px, 4vw, 34px); line-height: 1.25; margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 600; letter-spacing: -0.01em; }
.doc > h2:first-of-type { margin-top: 32px; }
h3 { color: var(--ink); font-size: 21px; margin: 28px 0 8px; font-weight: 600; }
p, ul, ol { margin: 0 0 18px; }
ul, ol { padding-left: 40px; }
li { margin-bottom: 6px; }
strong { color: #000; font-weight: 600; }

.resumo { background: var(--soft); border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 0 0 8px; }
.resumo ul { margin-bottom: 0; }
.resumo strong.t { display: block; font-size: 16px; margin-bottom: 8px; }

.tabela { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Campos a preencher antes de publicar */
.pend { background: var(--pend-bg); color: var(--pend-ink); padding: 1px 6px; border-radius: 6px; font-weight: 500; }

/* Home dos documentos */
.lead { text-align: center; color: var(--muted); font-size: 18px; max-width: 620px; margin: -32px auto 40px; padding: 0 16px; }
.cards { max-width: 900px; margin: 0 auto 80px; padding: 0 24px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: block; background: var(--soft); border-radius: 24px; padding: 28px; text-decoration: none; color: var(--text); border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--text); }
.card h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 22px; }
.card p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.card span { color: var(--blue); font-weight: 600; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } html { scroll-behavior: auto; } }

/* Rodapé */
.shade-foot { height: 80px; background: linear-gradient(#fff, #e9ebef); }
.foot-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-main img { height: 44px; width: auto; display: block; margin-bottom: 12px; }
.foot-main p { max-width: 420px; font-size: 13px; line-height: 1.7; color: #333; margin: 0; }
.foot-links { text-align: right; }
.foot-links strong { display: block; color: #0b1f4d; font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.foot-links a { display: block; color: #555; font-size: 13px; text-decoration: none; padding: 3px 0; }
.foot-links a:hover { color: var(--blue); text-decoration: underline; }
.foot-bar { background: var(--bar); color: #fff; text-align: center; font-size: 13px; padding: 14px 16px; }
@media (max-width: 560px) { .foot-links { text-align: left; } }

@media print {
	.topbar, .shade, .shade-foot, .foot-main, .foot-bar, .skip { display: none; }
	.doc { padding: 0; }
	.pend { background: none; color: inherit; }
}
