/* Páginas legais: termos de uso e política de privacidade */
:root {
  --lg-blue: #0c5adb;
  --lg-blue-dark: #0a3f9a;
  --lg-ink: #1c2233;
  --lg-muted: #5b6477;
  --lg-line: #e4e9f2;
  --lg-soft: #f4f7fd;
  --lg-head: #00010f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--lg-ink);
  background: #fff;
}
.lg-header { background: var(--lg-head); }
.lg-header .lg-bar {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.lg-header img { width: 156px; height: 45px; display: block; }
.lg-header a.back {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 8px; padding: 8px 14px;
}
.lg-header a.back:hover { background: rgba(255, 255, 255, .12); }

.lg-hero { background: linear-gradient(135deg, #0b1d4d 0%, #0c3a96 65%, #0c5adb 100%); color: #fff; }
.lg-hero .lg-wrap { padding-top: 48px; padding-bottom: 44px; }
.lg-hero .kicker { margin: 0 0 8px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9cc0ff; }
.lg-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 800; text-wrap: balance; }
.lg-hero p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .88); }
.lg-hero .meta { margin-top: 16px; font-size: 14px; color: #c7d8ff; }

.lg-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.lg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.lg-toc { position: sticky; top: 20px; font-size: 15px; line-height: 1.45; }
.lg-toc strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--lg-line); }
.lg-toc li a { display: block; padding: 6px 0 6px 14px; color: var(--lg-muted); text-decoration: none; }
.lg-toc li a:hover { color: var(--lg-blue); }

.lg-content { min-width: 0; }
.lg-content h2 { margin: 44px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 800; scroll-margin-top: 20px; text-wrap: balance; }
.lg-content h2:first-child { margin-top: 0; }
.lg-content h3 { margin: 24px 0 6px; font-size: 18px; font-weight: 800; }
.lg-content p { margin: 0 0 14px; }
.lg-content ul, .lg-content ol { margin: 0 0 16px; padding-left: 1.3em; }
.lg-content li { margin: 4px 0; }
.lg-content a { color: var(--lg-blue); }
.lg-content a:hover { color: var(--lg-blue-dark); }
.lg-note { background: var(--lg-soft); border: 1px solid var(--lg-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: 16px; }
.lg-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--lg-line); border-radius: 12px; }
.lg-content table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.5; }
.lg-content th, .lg-content td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--lg-line); }
.lg-content th { background: var(--lg-soft); font-weight: 800; }
.lg-content tr:last-child td { border-bottom: 0; }

.lg-footer { background: var(--lg-head); color: #c4cce4; font-size: 15px; }
.lg-footer .lg-bar { max-width: 1040px; margin: 0 auto; padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.lg-footer a { color: #fff; }
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

a:focus-visible, button:focus-visible { outline: 3px solid #ffb301; outline-offset: 2px; }

@media (max-width: 900px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .lg-toc { position: static; background: var(--lg-soft); border: 1px solid var(--lg-line); border-radius: 12px; padding: 16px 18px; }
  .lg-toc ol { border-left: 0; columns: 1; }
  .lg-toc li a { padding: 4px 0; }
  body { font-size: 16.5px; }
}
@media print {
  .lg-header, .lg-toc, .lg-footer { display: none; }
  .lg-hero { background: none; color: #000; }
  .lg-hero p, .lg-hero .meta, .lg-hero .kicker { color: #000; }
  .lg-layout { display: block; padding: 0; }
}
