/* ==========================================================================
   UaiCash Legal (Termos & Privacidade) — Identidade Visual da Página de Ajuda
   Mesmo layout, paleta (#101b2d, #c9f98b, #a78bfa, #f5f7fa) e rodapé Uai Technology®
   ========================================================================== */

:root {
  --help-ink: #17253b;
  --help-muted: #69788c;
  --help-line: #e2e8f0;
  --help-paper: #ffffff;
  --help-bg: #f5f7fa;
  --help-purple: #6d28d9;
  --help-lime: #c9f98b;
  --help-dark-hero: #101b2d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--help-bg);
  color: var(--help-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #a78bfa; outline-offset: 4px; }

.help-wrap {
  max-width: 1080px;
  margin: auto;
  padding: 28px 32px 36px;
}

/* Header */
.help-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.help-brand img { width: 34px; height: 34px; border-radius: 8px; }
.help-brand span {
  margin-left: 4px;
  border-left: 1px solid #cbd5e1;
  padding-left: 14px;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--help-muted);
}
.help-back {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
  color: var(--help-muted);
}
.help-back:hover { color: var(--help-purple); }

/* Hero (Idêntico ao ajuda.html) */
.help-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 48px 44px;
  border-radius: 28px;
  background: var(--help-dark-hero);
  color: #ffffff;
  margin-bottom: 36px;
}
.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #c0cfde;
}
.help-eyebrow span { font-size: 19px; color: var(--help-lime); }
.help-hero h1 {
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -3px;
  margin: 22px 0 18px;
  font-weight: 800;
}
.help-hero h1 > span { color: var(--help-lime); }
.help-hero p {
  font-size: 14px;
  line-height: 1.8;
  color: #bdcbdc;
  max-width: 500px;
  margin: 0 0 22px;
}
.legal-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.help-primary {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--help-lime);
  color: #17272b;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.15s ease;
}
.help-primary:hover { background: #b8ee70; }
.hero-meta-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Hero Art */
.hero-art {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 270px;
  height: 280px;
  pointer-events: none;
}
.art-ring {
  position: absolute;
  width: 235px;
  height: 235px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  top: 5px;
  left: 5px;
}
.art-ring:after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
}
.art-bubble {
  position: absolute;
  left: 30px;
  top: 40px;
  width: 166px;
  height: 145px;
  border-radius: 40px 40px 40px 8px;
  transform: rotate(-12deg);
  background: #a78bfa;
  color: #18223d;
  font-size: 56px;
  line-height: 145px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -3px;
  box-shadow: 14px 16px 0 #7462ab25;
}
.art-bubble > span {
  position: absolute;
  font-size: 44px;
  right: -48px;
  top: -58px;
  color: var(--help-lime);
  letter-spacing: 0;
  transform: rotate(8deg);
}
.art-note {
  position: absolute;
  left: 78px;
  top: 195px;
  background: #fff;
  color: #273246;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 11px;
  transform: rotate(8deg);
  white-space: nowrap;
  box-shadow: 0 8px 20px #0002;
}
.art-note span { margin-left: 12px; color: #6d28d9; font-size: 15px; }

/* Legal Content Sections */
.legal-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--help-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.legal-intro-card {
  background: var(--help-paper);
  border: 1px solid var(--help-line);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--help-muted);
}
.legal-intro-card strong { color: var(--help-ink); }

.legal-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.legal-card {
  background: var(--help-paper);
  border: 1px solid var(--help-line);
  border-radius: 20px;
  padding: 26px 28px;
}

.legal-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ede9fe;
  color: var(--help-purple);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.legal-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--help-ink);
}

.legal-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--help-muted);
  line-height: 1.75;
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--help-muted);
  line-height: 1.7;
}
.legal-card strong { color: var(--help-ink); }
.legal-card a {
  color: var(--help-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cross Navigation Cards */
.legal-nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.legal-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--help-paper);
  border: 1px solid var(--help-line);
  border-radius: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.legal-nav-card:hover {
  border-color: #c4b5fd;
  transform: translateY(-2px);
}
.legal-nav-card small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--help-muted);
  margin-bottom: 4px;
}
.legal-nav-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--help-ink);
}
.legal-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ede9fe;
  color: var(--help-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Rodapé Corporativo Padrão Uai Technology® */
.help-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px solid var(--help-line);
  background: var(--help-paper);
  border-radius: 20px;
  color: var(--help-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.help-footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-footer .footer-left strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--help-ink);
  letter-spacing: -0.3px;
}
.help-footer .footer-left span { font-size: 13px; color: var(--help-muted); }
.help-footer .footer-left small { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.help-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.help-footer nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--help-muted);
  transition: color 0.15s ease;
}
.help-footer nav a:hover { color: var(--help-purple); }

/* Dark Mode */
html.dark {
  --help-ink: #e4eaf4;
  --help-muted: #a1aec1;
  --help-line: #2b374b;
  --help-paper: #172132;
  --help-bg: #0c1422;
  --help-purple: #c4b5fd;
}
html.dark .legal-num,
html.dark .legal-nav-arrow {
  background: #302646;
  color: #e4d9ff;
}
html.dark .help-footer .footer-left strong { color: #f8fafc; }

/* Responsive */
@media (max-width: 768px) {
  .help-wrap { padding: 20px 18px 28px; }
  .help-hero { padding: 34px 24px; }
  .help-hero h1 { font-size: 44px; letter-spacing: -2px; }
  .hero-art { display: none; }
  .legal-card, .legal-intro-card { padding: 22px 20px; }
  .legal-nav-cards { grid-template-columns: 1fr; }
  .help-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
