@font-face {
  font-family: "Source Sans 3";
  src: url("/landing/fonts/source-sans-3-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/landing/fonts/source-sans-3-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/landing/fonts/source-sans-3-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #0c326f;
  --olive: #556b2f;
  --paper: #f6f3ea;
  --ink: #172033;
  --muted: #5f6877;
  --line: #d5d0c5;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.025em; line-height: 1.08; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--white);
  background: var(--plotei-brandbar-bg, var(--blue));
}

/* Altura, margens e logo vêm de /landing/plotei-brandbar.css (iguais ao app). */
.legal-topbar-inner {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.legal-nav { display: flex; justify-content: center; align-items: center; gap: 30px; }
.legal-nav a {
  color: #dbe5f3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--white); }

.legal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--white);
  border-radius: 4px;
  color: var(--blue) !important;
  background: var(--white);
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.legal-home-link:hover, .legal-home-link:focus-visible {
  color: var(--white) !important;
  background: transparent;
}

.legal-hero {
  padding: clamp(84px, 11vw, 150px) 24px clamp(56px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}
.legal-hero-inner { width: min(1220px, 100%); margin: 0 auto; }
.legal-kicker {
  margin-bottom: 18px;
  color: var(--olive);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: clamp(3rem, 6.3vw, 6rem);
  font-weight: 600;
}
.legal-summary { max-width: 720px; margin-bottom: 26px; color: #3f4958; font-size: 1.2rem; }
.legal-meta {
  display: inline-block;
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid var(--blue);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-page { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: clamp(54px, 8vw, 100px) 0; }
.legal-document { display: grid; grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr); gap: clamp(46px, 9vw, 136px); }
.legal-index { align-self: start; position: sticky; top: 104px; }
.legal-index p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-index ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal-index li { border-bottom: 1px solid var(--line); }
.legal-index a { display: block; padding: 10px 0; color: var(--muted); font-size: 0.82rem; line-height: 1.35; text-decoration: none; }
.legal-index a:hover, .legal-index a:focus-visible { color: var(--blue); text-decoration: underline; }

.legal-content { max-width: 760px; }
.legal-section { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { margin: 0 0 17px; color: var(--blue); font-size: clamp(1.55rem, 2.5vw, 2.2rem); font-weight: 600; }
.legal-section p, .legal-section li { color: #3f4958; }
.legal-section p { margin-bottom: 17px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--blue); font-weight: 600; }

.legal-footer { color: var(--white); background: #111b2c; }
.legal-footer-inner { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.legal-footer-main { display: grid; grid-template-columns: 160px 1fr auto; gap: 44px; align-items: center; padding: 62px 0 40px; }
.legal-footer-main img { width: 110px; filter: brightness(0) invert(1); }
.legal-footer-main p { margin: 0; color: #b8c0cd; }
.legal-footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.legal-footer-main a { color: #d8dde5; font-size: 0.85rem; }
.legal-footer-bottom { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid #344054; color: #8f9aaa; font-size: 0.75rem; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .legal-topbar-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .legal-nav { justify-content: flex-end; gap: 16px; }
  .legal-nav a { font-size: 0.78rem; }
  .legal-nav a:nth-child(2) { display: none; }
  .legal-home-link { min-height: 38px; padding: 7px 10px; font-size: 0.78rem !important; }
  .legal-hero { padding: 72px 15px 48px; }
  .legal-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .legal-summary { font-size: 1.06rem; }
  .legal-page { width: min(100% - 30px, 1220px); padding: 54px 0 64px; }
  .legal-document { display: block; }
  .legal-index { position: static; margin-bottom: 42px; }
  .legal-index ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .legal-section { padding-bottom: 30px; margin-bottom: 30px; }
  .legal-footer-inner { width: min(100% - 30px, 1220px); }
  .legal-footer-main { grid-template-columns: 1fr; gap: 24px; padding: 44px 0 30px; }
  .legal-footer-bottom { flex-direction: column; gap: 6px; }
}

/* Com a logo no tamanho do app, a barra não comporta os links em telas
   estreitas; eles continuam no rodapé e na landing. */
@media (max-width: 480px) {
  .legal-nav { display: none; }
  .legal-topbar-inner { grid-template-columns: auto 1fr; }
  .legal-home-link { justify-self: end; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
