/* ============================================================
   KFER GLASSMORPHISM DESIGN SYSTEM
   Premium dark UI com glass cards, gradientes animados e
   micro-interações sutis. Inspirado em produtos SaaS top-tier.
   ============================================================ */

:root {
  /* ───── paleta principal — DARK TOTAL (preto puro) ───── */
  --bg-0: #000000;
  --bg-1: #000000;
  --bg-2: #0a0a0a;
  --surface-0: rgba(255, 255, 255, 0.04);
  --surface-1: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --surface-3: rgba(255, 255, 255, 0.12);
  --border-0: rgba(255, 255, 255, 0.06);
  --border-1: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(16, 185, 129, 0.45);

  /* ───── texto ───── */
  --text-100: #ffffff;
  --text-80: rgba(255, 255, 255, 0.86);
  --text-60: rgba(255, 255, 255, 0.66);
  --text-40: rgba(255, 255, 255, 0.46);
  --text-20: rgba(255, 255, 255, 0.30);

  /* ───── acentos (verde KFER, sem roxo/azul) ───── */
  --primary: #10b981;        /* verde KFER */
  --primary-2: #059669;
  --primary-3: #34d399;
  --accent: #10b981;         /* verde */
  --accent-2: #34d399;
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #10b981;

  /* ───── gradientes (todos preto/verde) ───── */
  --grad-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-cool: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-bg: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);

  /* ───── sombra / blur ───── */
  --blur-1: 14px;
  --blur-2: 22px;
  --blur-3: 32px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.35);

  /* ───── radii ───── */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* ───── spacing ───── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;

  /* ───── tipografia ───── */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-4xl: 38px;
  --fs-5xl: 48px;

  /* ───── transitions ───── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 220ms var(--ease);
  --t-slow: 380ms var(--ease);

  /* ───── layout ───── */
  --sidebar-w: 264px;
  --navbar-h: 64px;
}

/* ─────────────── reset + base ─────────────── */

* { box-sizing: border-box; }
*, *::before, *::after { box-shadow: none; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-80);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--grad-bg);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Mesh animado sutil (movimento lento) */
body::before { display: none; }

a { color: var(--accent-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-100); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p { line-height: 1.65; color: var(--text-60); margin: 0 0 var(--s-3); }

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: var(--text-100);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }

/* ─────────────── glass cards ─────────────── */

.glass {
  background: var(--surface-1);
  backdrop-filter: blur(var(--blur-2)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2)) saturate(180%);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.glass-strong {
  background: var(--surface-2);
  backdrop-filter: blur(var(--blur-3)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-3)) saturate(200%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    var(--shadow-lg);
}

.glass-soft {
  background: var(--surface-0);
  backdrop-filter: blur(var(--blur-1)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-1)) saturate(160%);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
}

/* hover effect para cards interativos */
.glass-hover {
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}
.glass-hover:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* ─────────────── layout containers ─────────────── */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.page {
  padding: var(--s-8) 0 var(--s-12);
  min-height: calc(100vh - var(--navbar-h));
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: var(--fs-3xl);
  background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title .subtitle {
  margin-top: var(--s-2);
  color: var(--text-60);
  font-size: var(--fs-md);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-4);
}
.section-title h3 { font-size: var(--fs-lg); font-weight: 600; }
.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
}

/* ─────────────── grid helpers ─────────────── */

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-muted { color: var(--text-40); }
.text-soft { color: var(--text-60); }
.text-bright { color: var(--text-100); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.tracking-wide { letter-spacing: 0.04em; }

/* Paginas legais LGPD */
.legal-shell { max-width: 880px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-hero { text-align: center; margin-bottom: 48px; }
.legal-hero h1 {
  font-size: 44px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #4ade80);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 16px 0 8px;
}
.legal-sub { color: var(--text-40); font-size: 14px; }
.legal-back {
  display: inline-block; padding: 8px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text-20); text-decoration: none; font-size: 13px;
}
.legal-back:hover { background: rgba(255,255,255,0.08); }
.legal-toc {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 40px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-toc strong { color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.legal-toc a { color: var(--text-20); text-decoration: none; font-size: 14px; padding: 6px 0; }
.legal-toc a:hover { color: var(--primary); }
.legal-block {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 32px; margin-bottom: 24px;
}
.legal-block h2 {
  font-size: 24px; font-weight: 700; color: var(--text);
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-block p, .legal-block li { color: var(--text-20); line-height: 1.7; font-size: 15px; }
.legal-block a { color: var(--primary); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal-table th, .legal-table td { text-align: left; padding: 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.legal-table th { color: var(--primary); font-weight: 600; background: rgba(255,255,255,0.02); }
.legal-table td { color: var(--text-20); }
.legal-foot { text-align: center; margin-top: 48px; }
.legal-foot a { color: var(--primary); text-decoration: none; padding: 12px 24px; }


/* Evita selecao */
.table tbody tr { -webkit-user-select: none; user-select: none; }
