/*
 * Estilos das páginas públicas de conteúdo (Termos de Uso, Política de Privacidade, Licença de
 * Uso, Tutorial) — views/public/*.php. CSS puro, sem framework, classes prefixadas com "sz-"
 * pra nunca colidir com o Tailwind (CDN) usado no restante do sistema. Paleta e tipografia
 * seguem o padrão visual já existente (verde #22c55e/#16a34a, cinza, cards com borda suave e
 * cantos arredondados, mesmo espírito de views/landing/index.php).
 */

* { box-sizing: border-box; }

body.sz-public-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* ─── Topbar ─────────────────────────────────────────────────────────── */

.sz-public-topbar {
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.sz-public-topbar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sz-public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.sz-public-brand__logo {
  height: 34px;
  max-width: 110px;
  object-fit: contain;
}

.sz-public-brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sz-public-brand__name {
  font-size: 17px;
  font-weight: 800;
  color: #1f2937;
}

.sz-public-brand__accent { color: #16a34a; }

.sz-public-back {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}

.sz-public-back:hover { color: #16a34a; }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.sz-public-hero {
  background: linear-gradient(135deg, #16a34a, #065f46);
  color: #fff;
}

.sz-public-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 42px;
  text-align: center;
}

.sz-public-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.sz-public-hero__inner h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
}

.sz-public-hero__inner p {
  margin: 0;
  font-size: 15px;
  color: #dcfce7;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Conteúdo ───────────────────────────────────────────────────────── */

.sz-public-container {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.sz-meta {
  text-align: center;
  font-size: 12.5px;
  color: #9ca3af;
  margin: -20px 0 28px;
}

.sz-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.sz-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sz-card h2 i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sz-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4b5563;
}

.sz-card p:last-child { margin-bottom: 0; }

.sz-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 14px;
  color: #4b5563;
}

.sz-card ul:last-child { margin-bottom: 0; }

.sz-card li { margin-bottom: 6px; }

.sz-card a { color: #16a34a; }

/* ─── Grid de cards (Tutorial) ───────────────────────────────────────── */

.sz-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.sz-tutorial-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.sz-tutorial-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sz-tutorial-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}

.sz-tutorial-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.sz-tutorial-card p {
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
}

.sz-tutorial-card ol,
.sz-tutorial-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #6b7280;
}

.sz-tutorial-card li { margin-bottom: 4px; }

.sz-tutorial-card code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #15803d;
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */

.sz-faq-item {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.sz-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sz-faq-item summary::-webkit-details-marker { display: none; }

.sz-faq-item summary::before {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: #16a34a;
  transition: transform .15s ease;
  flex-shrink: 0;
}

.sz-faq-item[open] summary::before { transform: rotate(180deg); }

.sz-faq-item p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #6b7280;
  padding-left: 21px;
}

/* ─── Responsivo ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .sz-public-hero__inner { padding: 36px 20px 32px; }
  .sz-public-hero__inner h1 { font-size: 24px; }
  .sz-public-container { padding: 28px 18px 40px; }
  .sz-card { padding: 20px; }
  .sz-public-back span { display: none; }
}
