/* Public pages: policy, terms, contact.
 *
 * A layer of its own, loaded AFTER ckeditor5.css, which only formats what the
 * editor produced and leaves the page with no room to breathe. The layout is
 * here: reading width, typography, header and footer.
 *
 * Platform rule: no importing a whole framework, because the app's purge breaks
 * it. Only our own classes, under the km- prefix. The tokens carry the `site-`
 * prefix instead, so they never collide with the panel's, which is what
 * happened when both families answered to `km-`.
 */

:root {
  --site-green: #1a4531;
  --site-green-light: #2f7a55;
  --site-text: #1f2933;
  --site-muted: #5b6770;
  --site-border: #e3e8ec;
  --site-bg: #f6f8f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.km-topo {
  background: var(--site-green);
  color: #fff;
  padding: 28px 24px;
}

.km-topo-interno {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.km-topo img { height: 44px; width: auto; border-radius: 8px; padding: 4px; } /* the logo is white: it sits on the green bar itself */
.km-topo .km-marca { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.km-topo .km-sub { font-size: 14px; opacity: .85; margin-top: 2px; }

/* o conteúdo vem do editor dentro desta div */
.ck.ck-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.ck.ck-content h1,
.ck.ck-content h2 {
  color: var(--site-green);
  line-height: 1.25;
  margin: 34px 0 12px;
  font-size: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--site-border);
}

.ck.ck-content h1 { font-size: 30px; margin-top: 0; }
.ck.ck-content h3 { color: var(--site-green-light); font-size: 19px; margin: 24px 0 8px; }
.ck.ck-content p { margin: 0 0 14px; }
.ck.ck-content ul,
.ck.ck-content ol { margin: 0 0 16px; padding-left: 22px; }
.ck.ck-content li { margin-bottom: 6px; }
.ck.ck-content strong { color: var(--site-text); }

.ck.ck-content a { color: var(--site-green-light); }

.ck.ck-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 16px;
}

.ck.ck-content th,
.ck.ck-content td {
  border: 1px solid var(--site-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.ck.ck-content th { background: var(--site-bg); color: var(--site-green); font-weight: 600; }

/* destaque para avisos importantes (permissões, direitos do titular) */
.ck.ck-content blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--site-bg);
  border-left: 4px solid var(--site-green-light);
  border-radius: 0 10px 10px 0;
  color: var(--site-muted);
}

.km-rodape {
  max-width: 820px;
  margin: 18px auto 40px;
  padding: 0 24px;
  color: var(--site-muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .ck.ck-content { padding: 24px 18px; border-radius: 0; border-left: 0; border-right: 0; }
  .ck.ck-content h1 { font-size: 25px; }
  .ck.ck-content h2 { font-size: 21px; }
  .km-topo { padding: 20px 18px; }
}

@media print {
  body { background: #fff; }
  .km-topo { background: #fff; color: #000; }
  .ck.ck-content { border: 0; box-shadow: none; max-width: none; }
}
