/* Apresentação dos documentos institucionais e da página 404. */
body.editorial-support { display: flow-root; min-height: 100vh; }
body.editorial-support :focus-visible { outline: 2px solid var(--editorial-amber-ink); outline-offset: 4px; }
body.editorial-support .btn { white-space: normal; }
body.editorial-support .progress { background: var(--editorial-amber-ink); box-shadow: none; }
body.editorial-support .nav :focus-visible,
body.editorial-support .footer :focus-visible { outline-color: var(--editorial-amber); }
body.editorial-support .nav__cta-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3em; }
body.editorial-support .nav__cta-extra { margin-left: .1em; }
body.editorial-support .nav__cta .editorial-arrow { width: 1.15rem; height: 1.15rem; }

/* Cabeçalho amplo e leitura com uma medida confortável para textos longos. */
body.editorial-legal .legal-page { padding-block: clamp(3.25rem, 6vw, 6rem) clamp(3rem, 6vw, 5rem); }
body.editorial-legal .legal-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr);
  grid-template-areas: "label meta" "title entity";
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  max-width: none;
  margin: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-color: var(--editorial-line);
  text-align: left;
  align-items: end;
}
body.editorial-legal .legal-header .eyebrow { grid-area: label; margin: 0; align-self: start; }
body.editorial-legal .legal-header h1 { grid-area: title; max-width: 13ch; margin: 0; color: var(--editorial-ink); font: 600 clamp(3.5rem, 6.5vw, 6.5rem)/1.06 var(--editorial-serif); letter-spacing: -.045em; }
body.editorial-legal .legal-entity { grid-area: entity; margin: 0; color: var(--editorial-muted); font-size: .89rem; line-height: 1.85; }
body.editorial-legal .legal-entity strong { color: var(--editorial-ink); font-weight: 700; }
body.editorial-legal .legal-meta { grid-area: meta; margin: 0; color: var(--editorial-muted); font: 600 .72rem/1.7 var(--editorial-sans); letter-spacing: 0; }
body.editorial-legal .legal-meta time { color: var(--editorial-ink); font-weight: 800; }
body.editorial-legal .legal-content { max-width: 800px; margin: 0 auto; padding-top: clamp(1rem, 2vw, 2rem); }
body.editorial-legal .legal-content section { margin: 0; padding-block: clamp(2rem, 3.5vw, 3rem); border-bottom: 1px solid var(--editorial-line); }
body.editorial-legal .legal-content section:last-child { border-bottom: 0; padding-bottom: 0; }
body.editorial-legal .legal-content h2 { margin-bottom: 1.3rem; color: var(--editorial-ink); font: 600 clamp(1.65rem, 2.5vw, 2.15rem)/1.25 var(--editorial-serif); letter-spacing: -.025em; }
body.editorial-legal .legal-content h3 { margin: 1.5rem 0 .75rem; color: var(--editorial-ink); font: 700 1.05rem/1.5 var(--editorial-sans); letter-spacing: 0; }
body.editorial-legal .legal-content p,
body.editorial-legal .legal-content ul,
body.editorial-legal .legal-content ol { color: #40546a; font-size: 1rem; line-height: 1.9; overflow-wrap: anywhere; }
body.editorial-legal .legal-content p { margin-bottom: 1rem; }
body.editorial-legal .legal-content section > :last-child { margin-bottom: 0; }
body.editorial-legal .legal-content ul,
body.editorial-legal .legal-content ol { margin: .4rem 0 1.1rem; padding-left: 1.3rem; }
body.editorial-legal .legal-content li { padding-left: .25rem; margin-bottom: .55rem; }
body.editorial-legal .legal-content li::marker { color: var(--editorial-amber-ink); }
body.editorial-legal .legal-content strong { color: var(--editorial-ink); font-weight: 800; }
body.editorial-legal .legal-content a { color: var(--editorial-navy); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
body.editorial-legal .legal-content a:hover { color: var(--editorial-amber-ink); }
body.editorial-legal .legal-content .legal-contact { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; background: var(--editorial-paper-deep); }
/* O ícone decorativo passa a usar traço vetorial sem alterar o HTML jurídico. */
body.editorial-legal .legal-contact span[aria-hidden="true"] { display: inline-block; flex: none; width: 1.2rem; height: 1.2rem; font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310263d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Recuperação de caminho com a mesma identidade editorial das páginas de oferta. */
body.editorial-not-found { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.editorial-not-found .support-header { background: var(--editorial-navy-deep); }
body.editorial-not-found .support-header__inner { min-height: 88px; display: flex; align-items: center; }
body.editorial-not-found .support-header__logo { width: 150px; height: auto; display: block; }
body.editorial-not-found .support-header :focus-visible { outline-color: var(--editorial-amber); }
body.editorial-not-found .nf { flex: 1; display: grid; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
body.editorial-not-found .nf > .container { display: grid; width: 100%; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); grid-template-areas: "code title" "code text" "code actions" "code legal"; gap: 1.25rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
body.editorial-not-found .nf__code { grid-area: code; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 360px; padding: 2rem; background: var(--editorial-navy-deep); color: var(--editorial-amber); font: 500 clamp(7rem, 12vw, 12rem)/1 var(--editorial-serif); letter-spacing: -.06em; }
body.editorial-not-found .nf__title { grid-area: title; max-width: 14ch; margin: 0; color: var(--editorial-ink); font: 600 clamp(2.8rem, 4.5vw, 4.8rem)/1.1 var(--editorial-serif); letter-spacing: -.04em; }
body.editorial-not-found .nf__text { grid-area: text; max-width: 45ch; margin: 0; color: var(--editorial-muted); font-size: 1rem; line-height: 1.85; }
body.editorial-not-found .nf__links { grid-area: actions; display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .5rem; }
body.editorial-not-found .nf__links .btn { justify-content: space-between; gap: .8rem; }
body.editorial-not-found .nf__legal { grid-area: legal; margin: .1rem 0 0; font-size: .8rem; line-height: 1.7; }
body.editorial-not-found .nf__legal a { color: var(--editorial-ink); text-decoration: underline; text-underline-offset: .25em; }
body.editorial-not-found .nf__legal a:hover { color: var(--editorial-amber-ink); }

body.editorial-support .cookie-consent { background: var(--editorial-navy-deep); border-color: var(--editorial-amber); box-shadow: none; backdrop-filter: none; }
body.editorial-support .cookie-consent h2 { color: #fff; }
body.editorial-support .cookie-consent p { color: #d8e2ed; }
body.editorial-support .cookie-consent :focus-visible { outline-color: var(--editorial-amber); }
body.editorial-support .cookie-preferences { position: static; display: block; width: fit-content; max-width: calc(100% - var(--pad) - var(--pad)); min-height: 44px; margin: 1.5rem auto 2rem; padding: .8rem 1rem; border: 1px solid #8996a2; border-radius: 0; color: var(--editorial-ink); background: transparent; font: 700 .75rem/1.5 var(--editorial-sans); backdrop-filter: none; }
body.editorial-support .cookie-preferences:hover { color: #fff; background: var(--editorial-navy-deep); border-color: var(--editorial-navy-deep); }
body.editorial-support .to-top { border-radius: 0; background: var(--editorial-navy-deep); box-shadow: none; backdrop-filter: none; }
body.editorial-support .to-top:hover { color: var(--editorial-navy-deep); background: var(--editorial-amber); border-color: var(--editorial-amber); }

@media (max-width: 900px) {
  body.editorial-legal .legal-header { grid-template-columns: 1fr; grid-template-areas: "label" "title" "entity" "meta"; gap: 1.4rem; }
  body.editorial-legal .legal-header h1 { max-width: 16ch; font-size: clamp(3.1rem, 8vw, 5.25rem); }
  body.editorial-legal .legal-entity { max-width: 48ch; }
  body.editorial-legal .legal-meta { margin-top: .25rem; }
  body.editorial-not-found .nf > .container { grid-template-columns: minmax(200px, .7fr) minmax(0, 1fr); gap: 1.2rem 2rem; }
  body.editorial-not-found .nf__code { min-height: 340px; font-size: 7rem; padding: 1.25rem; }
}

@media (max-width: 600px) {
  body.editorial-legal .legal-page { padding-top: 2.5rem; }
  body.editorial-legal .legal-header h1 { font-size: clamp(2.8rem, 11.5vw, 4rem); }
  body.editorial-legal .legal-header .eyebrow { font-size: .6rem; letter-spacing: .12em; }
  body.editorial-legal .legal-content h2 { font-size: 1.7rem; }
  body.editorial-legal .legal-content p,
  body.editorial-legal .legal-content ul,
  body.editorial-legal .legal-content ol { font-size: .96rem; line-height: 1.85; }
  body.editorial-legal .legal-content .legal-contact { gap: .5rem; padding: 1rem .8rem; font-size: .87rem; }
  body.editorial-not-found .support-header__inner { min-height: 78px; }
  body.editorial-not-found .support-header__logo { width: 132px; }
  body.editorial-not-found .nf { padding-block: 2rem; }
  body.editorial-not-found .nf > .container { grid-template-columns: 1fr; grid-template-areas: "code" "title" "text" "actions" "legal"; gap: 1.25rem; }
  body.editorial-not-found .nf__code { min-height: 0; padding: 0; justify-content: flex-start; color: var(--editorial-amber-ink); background: none; font-size: 6rem; line-height: 1; }
  body.editorial-not-found .nf__title { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  body.editorial-not-found .nf__text { font-size: .95rem; line-height: 1.8; }
  body.editorial-not-found .nf__links { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 0; }
  body.editorial-not-found .nf__links .btn { font-size: .76rem; padding: .85rem .8rem; justify-content: center; }
  body.editorial-not-found .nf__links .btn--primary { grid-column: 1 / -1; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-support .btn,
  body.editorial-support .cookie-preferences { transition: none; }
}
