/* TecleDev — banner/modal de consentimento de cookies (para uso no index.html). */
/* Usa os tokens (--violet, --lavender, --bg, --text, --border) já definidos na página. */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #0D0D14;
  color: #f1f3f5;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cookie-banner .text { flex: 1; font-size: .85rem; line-height: 1.5; }
.cookie-banner .text strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.cookie-banner .text a { color: var(--lavender, #A78BFA); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: .5rem; flex-shrink: 0; }

.cookie-btn {
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #f1f3f5;
  font-family: inherit;
}
.cookie-btn.primary {
  background: linear-gradient(135deg, var(--violet, #7C3AED), var(--lavender, #A78BFA));
  border-color: transparent;
  color: #fff;
}
.cookie-btn:hover { filter: brightness(1.08); }

@media (max-width: 720px) {
  .cookie-banner .inner { flex-direction: column; align-items: stretch; gap: .75rem; }
  .cookie-banner .actions { justify-content: stretch; }
  .cookie-banner .actions .cookie-btn { flex: 1; }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal .box {
  background: var(--bg, #fff);
  color: var(--text, #1A1040);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border, rgba(108,71,255,.14));
}
.cookie-modal h3 { margin: 0 0 1rem; }
.cookie-cat { padding: .85rem 0; border-bottom: 1px solid var(--border, rgba(108,71,255,.14)); }
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat .row { display: flex; align-items: center; gap: 10px; }
.cookie-cat label { font-weight: 700; font-size: .95rem; }
.cookie-cat p { font-size: .82rem; color: var(--muted, rgba(26,16,64,.58)); margin: .35rem 0 0 0; }
.cookie-modal .actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.25rem; justify-content: flex-end;
}
.cookie-modal .actions .cookie-btn { color: var(--text, #1A1040); border-color: var(--border, rgba(108,71,255,.14)); }
.cookie-modal .actions .cookie-btn.primary { color: #fff; }
