/* SaborControl — páginas de texto longo (termos, privacidade, ajuda). Usa os tokens de style.css. */
.d-body { background: var(--bg); overflow-x: hidden; }
.d-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* topo e rodapé */
.d-top { border-bottom: 1px solid var(--line); background: var(--card); }
.d-top .d-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.d-top-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.d-foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.d-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.d-foot a { color: var(--muted); font-weight: 600; text-decoration: none; }
.d-foot a:hover, .d-foot a[aria-current="page"] { color: var(--text); }

/* texto */
.doc { padding-top: 32px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(28px, 7vw, 38px); letter-spacing: -.03em; line-height: 1.12; }
.doc .d-meta { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.doc .d-lead { font-size: 18px; color: var(--text); margin: 18px 0 0; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; scroll-margin-top: 16px; }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--sc); text-underline-offset: 2px; }
.doc strong, .doc b { font-weight: 700; }
.doc code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* caixas de destaque */
.d-note { background: var(--sc-soft); border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; }
.d-note.warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.d-note p { margin: 4px 0; }

/* sumário */
.d-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0 8px; }
.d-toc b { display: block; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.d-toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 24px; }
.d-toc li { margin: 4px 0; break-inside: avoid; }
.d-toc a { text-decoration: none; }
.d-toc a:hover { text-decoration: underline; }

/* tabela simples (vira lista no celular) */
.d-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.d-table th, .d-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.d-table th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 560px) {
  .d-table thead { display: none; }
  .d-table, .d-table tbody, .d-table tr, .d-table td { display: block; width: 100%; }
  .d-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .d-table td { border: 0; padding: 2px 0; }
  .d-table td:first-child { font-weight: 700; }
}

/* ajuda */
.h-search { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; margin-top: 16px; }
.h-search input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 16px; }
.h-search input:focus { outline: 2px solid var(--sc); outline-offset: 1px; }
.h-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 14px; margin: 14px 0; }
.h-sec h2 { margin-top: 16px; }
.h-sec ol { padding-left: 22px; }
.h-empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* ajuda: busca grande, temas e perguntas */
.h-search input { padding: 15px 16px; font-size: 17px; box-shadow: var(--shadow); }
.h-qinfo { margin: 6px 2px 0; font-size: 13px; color: var(--muted); min-height: 0; }
.h-qinfo:empty { display: none; }
.h-sec, .h-block, .h-q, .h-sec [id] { scroll-margin-top: 92px; }
.h-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.h-topics a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.h-topics a:hover, .h-topics a:focus-visible { border-color: var(--sc); transform: translateY(-1px); }
.h-topics b { color: var(--sc); font-size: 15px; }
.h-topics small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.h-block h3 { margin-top: 18px; }
.doc .h-faq-h { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 4px; }
.h-q { border-top: 1px solid var(--line); }
.h-q:last-of-type { border-bottom: 1px solid var(--line); }
.h-q > summary { list-style: none; cursor: pointer; position: relative; padding: 12px 30px 12px 0; font-weight: 650; line-height: 1.45; }
.h-q > summary::-webkit-details-marker { display: none; }
.h-q > summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-size: 21px; font-weight: 500; color: var(--sc); }
.h-q[open] > summary::after { content: "−"; }
.h-q > summary:hover { color: var(--sc); }
.h-q > summary:focus-visible { outline: 2px solid var(--sc); outline-offset: 2px; border-radius: 6px; }
.h-a { padding: 0 0 12px; }
.h-a > :first-child { margin-top: 0; }
.h-top { display: inline-block; margin-top: 12px; font-size: 14px; text-decoration: none; }
.h-drivers td:first-child { white-space: normal; min-width: 130px; }
.h-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.h-contact .btn { text-decoration: none; }
.doc .h-contact a.btn { color: var(--on-brand); }
.doc .h-contact a.btn.ghost { color: var(--text); }

@media (max-width: 480px) {
  .doc { padding-top: 24px; }
  .doc h2 { font-size: 20px; margin-top: 32px; }
  .doc .d-lead { font-size: 17px; }
  .h-sec { padding: 2px 14px 12px; }
  .d-top-links .btn.ghost { display: none; }
}

/* tutoriais em vídeo (verticais) */
.h-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.h-vid { margin: 0; background: var(--soft, #f1efe9); border-radius: 14px; overflow: hidden; scroll-margin-top: 90px; }
.h-vid video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #0f3a2c; object-fit: cover; }
.h-vid figcaption { padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; }
.h-vid figcaption small { color: var(--muted, #666); }
.h-vlink { margin: 4px 0 8px; font-weight: 700; }
@media (max-width: 480px) { .h-vids { grid-template-columns: 1fr 1fr; gap: 10px; } }
