/* ============================================================
   Notacil — Central de Ajuda
   Complementa o styles.css da landing: tokens, fontes, botões e o
   .navbar__cta vêm de lá.
   ============================================================ */

/* ---------- Cabeçalho ---------- */

.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 var(--pad-x);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.help-header__brand img { height: 32px; width: auto; }
.help-header__section {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.help-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.help-header__login { font-weight: 500; font-size: 14px; color: var(--ink); }
.help-header__login:hover { color: var(--orange); }

/* ---------- Estrutura ---------- */

.help-main {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.help-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.help-breadcrumb a { text-decoration: underline; text-underline-position: from-font; }
.help-breadcrumb a:hover { color: var(--orange); }

/* ---------- Página inicial da Central ---------- */

.help-intro { display: flex; flex-direction: column; gap: 16px; }
.help-intro h1,
.help-article h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.help-lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

.help-section { display: flex; flex-direction: column; gap: 20px; }
.help-section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.help-guides { display: flex; flex-direction: column; gap: 12px; list-style: none; counter-reset: guide; }
.help-guide a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s ease, transform .15s ease;
}
.help-guide a:hover { border-color: var(--orange); transform: translateY(-1px); }
.help-guide a::before {
  counter-increment: guide;
  content: counter(guide, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  min-width: 28px;
  color: var(--orange-text);
}
.help-guide__title { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.help-guide__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Artigo ---------- */

.help-article { display: flex; flex-direction: column; gap: 24px; }
.help-step p,
.help-note p,
.help-article li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.help-article ul { list-style: disc; padding-left: 22px; }
.help-article strong { font-weight: 600; }
.help-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-position: from-font;
}
.help-link:hover { color: var(--orange); }

.help-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--cream-2);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
}
.help-note__title { font-weight: 600; }

.help-step { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.help-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}
.help-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  font-size: 15px;
  color: var(--cream);
}

.help-figure { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.help-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(1, 36, 50, .08);
}
/* formulários das telas de entrada: altos e estreitos, ocupariam a tela toda */
.help-figure--narrow { max-width: 440px; }
.help-figure figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); }

.help-fictitious { font-size: 13px; color: var(--muted); }

/* ---------- Navegação entre guias e contato ---------- */

.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s ease;
}
.help-pager a:hover { border-color: var(--orange); }
.help-pager span { font-weight: 400; font-size: 13px; color: var(--muted); }
.help-pager__next { grid-column: 2; text-align: right; }

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--navy);
  border-radius: 8px;
  color: var(--cream);
}
.help-contact__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.help-contact__text { margin-top: 4px; font-size: 14px; opacity: .8; }

/* ---------- Rodapé ---------- */

.help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.help-footer nav { display: flex; gap: 24px; }
.help-footer a:hover { color: var(--orange); }

/* ---------- Responsivo ---------- */

@media (max-width: 760px) {
  .help-header { gap: 16px; padding: 0 20px; }
  .help-header__section { display: none; }
  .help-header__login { display: none; }
  .help-main { gap: 40px; padding: 32px 20px 72px; }
  .help-intro h1, .help-article h1 { font-size: 30px; }
  .help-step h2 { font-size: 20px; }
  .help-pager { grid-template-columns: 1fr; }
  .help-pager__next { grid-column: 1; }
  .help-contact { flex-direction: column; align-items: flex-start; padding: 24px; }
  .help-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* ---------- Páginas institucionais e legais ---------- */

.legal-article h2 {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}
.legal-article h3 { margin-top: 4px; font-weight: 600; font-size: 17px; color: var(--ink); }
.legal-article p,
.legal-article li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.legal-article .legal-updated { font-size: 14px; color: var(--muted); }
.legal-article a:not(.btn) { font-weight: 600; text-decoration: underline; text-underline-position: from-font; }
.legal-article a:not(.btn):hover { color: var(--orange); }

.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th,
.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { font-weight: 600; background: var(--cream-2); }
.legal-table code { font-size: 13px; }

/* dado que só o titular do negócio informa: sem ele, a página não vai ao ar */
.help-contact a { text-decoration: underline; text-underline-position: from-font; }
