/* ========================
   RESET
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ========================
   TOKENS
======================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f8fa;
  --border: #e8e8ec;
  --text: #111118;
  --muted: #6b6b7b;
  --accent: #16a34a;
  --accent-light: #dcfce7;
  --accent-dark: #15803d;
  --green: #059669;
  --green-light: #d1fae5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.10);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ========================
   BASE
======================== */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid rgba(22,163,74,.28);
  outline-offset: 3px;
}

.inline-accent-link {
  color: var(--accent);
  font-weight: 600;
}

.mt-8 { margin-top: 8px; }

.visually-hidden-input {
  display: none;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.doc-intro {
  font-size: .92rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.7;
}

.contact-row-spaced {
  margin-top: 8px;
}

.contact-note-sm {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 6px;
}

.contact-note-md {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 10px;
}

.doc-update-note {
  margin-top: 20px;
}

/* ========================
   SECONDARY PAGE HEADER
======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.header-back:hover { color: var(--accent); }
.header-back svg { width: 14px; height: 14px; }
.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  transition: background var(--transition);
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); }

/* ========================
   SIDEBAR LAYOUT
======================== */
.page-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.sidebar {
  width: var(--sidebar-w, 240px);
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 32px 0 40px;
  background: var(--bg);
}
.sidebar-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 0 20px;
  margin-bottom: 10px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 9px 20px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.sidebar-divider { height: 1px; background: var(--border); margin: 20px 20px; }

/* ========================
   MOBILE NAV
======================== */
.mobile-nav {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 90;
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* ========================
   DOC CONTENT (termos/privacidade)
======================== */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
  padding: 48px 40px 80px;
}
.doc-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.doc-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.doc-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.doc-meta { font-size: .85rem; color: var(--muted); }
.doc-meta strong { color: var(--text); font-weight: 600; }

.doc-section { margin-bottom: 48px; padding-top: 8px; }
.doc-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.doc-section p { font-size: .92rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { list-style: none; margin: 12px 0; }
.doc-section ul li {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 5px 0 5px 20px;
  position: relative;
}
.doc-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.doc-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-section a:hover { color: var(--accent-dark); }

.highlight-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight-box p { font-size: .88rem; color: var(--muted); margin: 0; }
.highlight-box strong { color: var(--text); }

.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.warning-box p { font-size: .88rem; color: #9a3412; margin: 0; }

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}
.contact-card p { font-size: .9rem; margin-bottom: 6px; }
.contact-card a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ========================
   CTA SECTION (dark, full-width)
======================== */
.cta-section {
  background: var(--text);
  padding: 72px 48px;
  text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-section p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 99px;
  transition: opacity var(--transition);
}
.btn-cta-white:hover { opacity: .9; }

/* ========================
   FOOTER (secondary pages)
======================== */
.page-footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { font-size: .82rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.page-footer > p { font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================
   RESPONSIVE (sidebar layout)
======================== */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .main-content { padding: 32px 20px 60px; }
  .page-layout { max-width: 100%; }
}
@media (max-width: 480px) {
  .cta-section { padding: 56px 24px; }
}
