/* Complementa legal.css com o que uma página de documentação precisa. */

.docs-main { width: min(920px, calc(100% - 36px)); margin-inline: auto; padding: 68px 0 80px; }
.docs-lead { margin: 16px 0 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.docs-meta { margin: 22px 0 44px; color: var(--muted); font-size: 13px; }
.docs-meta code { font-size: 12px; }

.docs-toc {
  margin: 0 0 40px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(29, 33, 36, .6);
}
.docs-toc strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docs-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.docs-toc li { margin-bottom: 6px; color: var(--muted); }
.docs-toc a { color: var(--muted); text-decoration: none; }
.docs-toc a:hover { color: var(--orange); }

.docs-section { margin-bottom: 52px; scroll-margin-top: 24px; }
.docs-section > h2 {
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; letter-spacing: -.02em;
}
.docs-section h3 { margin: 32px 0 8px; font-size: 17px; line-height: 1.35; }
.docs-section p { margin: 14px 0 0; color: var(--muted); max-width: 68ch; }
.docs-section ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); max-width: 68ch; }
.docs-section li { margin-bottom: 6px; }
.docs-section strong { color: var(--text); }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .06); color: #ffd0ac;
  /* Nomes de cabeçalho e rotas não têm onde quebrar e furam a tela estreita. */
  overflow-wrap: anywhere;
}

pre {
  margin: 16px 0 0; padding: 18px 20px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 12px; background: #101315;
}
pre code { padding: 0; background: none; color: #dfe4e6; font-size: 13px; line-height: 1.7; }

.endpoint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 26px 0 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(29, 33, 36, .8);
}
.endpoint .verb {
  padding: 3px 9px; border-radius: 5px; background: rgba(112, 216, 146, .16);
  color: #70d892; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.endpoint .verb.is-post { background: rgba(255, 122, 26, .16); color: var(--orange); }
.endpoint .path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }
.endpoint .auth { margin-left: auto; color: var(--muted); font-size: 12px; }

.docs-table-wrap { overflow-x: auto; margin: 16px 0 0; }
table.docs-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
table.docs-table th, table.docs-table td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.docs-table th { color: var(--text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
table.docs-table td { color: var(--muted); }
table.docs-table td:first-child { white-space: nowrap; }

.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
  margin: 22px 0 0; padding: 16px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 10px; background: rgba(255, 122, 26, .05);
}
.callout.is-warning { border-left-color: #e0b341; background: rgba(224, 179, 65, .05); }
.callout b { font-size: 18px; line-height: 1.2; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

ol.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li {
  counter-increment: s; position: relative; padding: 0 0 18px 42px; color: var(--muted);
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255, 122, 26, .4); border-radius: 50%;
  background: rgba(255, 122, 26, .1); color: var(--orange); font-size: 13px; font-weight: 800;
}
ol.steps b { color: var(--text); }

@media (max-width: 620px) {
  .docs-main { padding-top: 44px; }
  .docs-toc ol { columns: 1; }
  .endpoint .auth { margin-left: 0; width: 100%; }
}
