/* CSS para páginas legais estáticas (privacidade, termos, precos, faq, sobre, etc.).
 * Independente do bundle Vite — carrega direto pelo Apache.
 */

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

:root {
  --bg: #FFFFFF;
  --bg-dark: #0D1117;
  --text: #111827;
  --text-muted: #4B5563;
  --accent: #4ADE80;
  --primary: #1F7A63;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --border: #E5E7EB;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
}
.skip-to-content:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  outline: 2px solid var(--bg-dark);
  outline-offset: 2px;
}

.legal-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.legal-back:hover { color: #fff; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem 4rem;
}

.legal article > * + * { margin-top: 1rem; }
.legal article > h2 + *,
.legal article > h3 + * { margin-top: 0.5rem; }

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.legal h1 {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.legal article > h2:first-of-type { border-top: none; padding-top: 0; }

.legal h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem;
}

.legal p { font-size: 1rem; max-width: 70ch; }

.legal ul, .legal ol {
  padding-left: 1.5rem;
  max-width: 70ch;
}
.legal li { margin-bottom: 0.5rem; }

.legal-todo {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  color: var(--warn);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 1.5rem 0 !important;
}
.legal-todo strong { color: var(--warn); }
.legal-todo em {
  font-style: italic;
  color: var(--warn);
  background: rgba(180, 83, 9, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 !important;
  font-size: 0.95rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.legal-table th {
  background: #F9FAFB;
  font-weight: 700;
}

.legal details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem !important;
  overflow: hidden;
  transition: background 0.15s;
}
.legal details[open] {
  background: #F9FAFB;
}
.legal summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.legal details > p, .legal details > ul {
  padding: 0 1.25rem 1.25rem;
}

.legal-cta {
  display: inline-block;
  background: #25D366;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 1.05rem;
  transition: filter 0.18s;
  min-height: 44px;
}
.legal-cta:hover { filter: brightness(1.08); color: #fff !important; }
.legal-cta:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}

.legal-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.legal-footer a { color: var(--accent); }
