/**
 * POLÍTICA DE PRIVACIDADE - JOGATEMPO
 * CSS Moderno e Responsivo
 * Versão: 1.0 - Janeiro 2025
 */

/* ================================================
   IMPORTAÇÃO DE FONTES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ================================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   ================================================ */
:root {
  /* === CORES PRINCIPAIS === */
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #4a5568;
  --muted: #6b7280;
  --primary: #4A90E2;
  --primary-hover: #3b82f6;
  --primary-light: #dbeafe;
  --secondary: #F48B8B;
  --accent: #FFE29A;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* === BORDAS E RAIOS === */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* === SOMBRAS === */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* === ESPAÇAMENTO === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* === TIPOGRAFIA === */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* === TRANSIÇÕES === */
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ================================================
   TEMA ESCURO
   ================================================ */
[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --text-secondary: #cbd5e0;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #1e3a8a;
  --border-light: #334155;
  --border-medium: #475569;
}

/* ================================================
   RESET E BASE
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================
   CONTAINER PRINCIPAL
   ================================================ */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex: 1;
  position: relative;
}

/* Container responsivo */
@media (min-width: 640px) {
  main {
    padding: var(--space-3xl) var(--space-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  main {
    padding: var(--space-3xl);
  }
}

/* ================================================
   TIPOGRAFIA
   ================================================ */
h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 var(--space-xl) 0;
  line-height: 1.2;
  position: relative;
  padding-bottom: var(--space-lg);
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
}

h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-2xl) 0 var(--space-lg) 0;
  line-height: 1.3;
  position: relative;
  padding-left: var(--space-lg);
}

h2::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: var(--font-size-sm);
  top: 0.2em;
}

h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  margin: var(--space-xl) 0 var(--space-md) 0;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Primeiro parágrafo destacado */
main > p:first-of-type {
  font-size: var(--font-size-lg);
  color: var(--text);
  background: var(--primary-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
}

[data-theme="dark"] main > p:first-of-type {
  background: var(--primary-light);
  color: var(--text);
}

/* ================================================
   LISTAS
   ================================================ */
ul, ol {
  margin: 0 0 var(--space-lg) 0;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

li strong {
  color: var(--text);
  font-weight: 600;
}

/* Lista customizada */
ul li {
  position: relative;
  list-style: none;
  padding-left: var(--space-lg);
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

/* ================================================
   SEÇÕES
   ================================================ */
section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

section:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Seção FAQ destacada */
section:last-of-type {
  background: linear-gradient(135deg, var(--primary-light), var(--surface));
  border: 2px solid var(--primary);
}

[data-theme="dark"] section:last-of-type {
  background: linear-gradient(135deg, var(--primary-light), var(--surface));
}

/* ================================================
   LINKS
   ================================================ */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

a:hover,
a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  outline: none;
}

a:focus {
  box-shadow: 0 0 0 2px var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-xs);
}

/* Link de email destacado */
a[href^="mailto:"] {
  background: var(--primary-light);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

a[href^="mailto:"]::before {
  content: '📧';
  font-size: var(--font-size-sm);
}

a[href^="mailto:"]:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ================================================
   FAQ - DESCRIPTION LIST
   ================================================ */
dl {
  margin: var(--space-lg) 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

dt {
  background: var(--primary);
  color: white;
  padding: var(--space-lg);
  font-weight: 600;
  font-size: var(--font-size-lg);
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition);
}

dt:hover {
  background: var(--primary-hover);
}

dt::after {
  content: '+';
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xl);
  font-weight: 700;
  transition: transform var(--transition);
}

dd {
  background: var(--bg);
  padding: var(--space-lg);
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.6;
}

dd:last-child {
  border-bottom: none;
}

/* Efeito de expansão para FAQ */
dt + dd {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-lg);
  transition: all var(--transition-slow);
}

dt:hover + dd,
dt:focus + dd {
  max-height: 200px;
  padding: var(--space-lg);
}

dt:hover::after,
dt:focus::after {
  transform: translateY(-50%) rotate(45deg);
}

/* ================================================
   NAVEGAÇÃO
   ================================================ */
nav {
  text-align: center;
  margin: var(--space-2xl) auto;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

nav a {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  margin: 0 var(--space-sm);
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition);
}

nav a:hover,
nav a:focus {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Separadores na navegação */
nav {
  font-size: 0; /* Remove espaços entre elementos inline */
}

nav a,
nav::before {
  font-size: var(--font-size-base);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  text-align: center;
  padding: var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary);
}

/* ================================================
   ELEMENTOS ESPECIAIS
   ================================================ */

/* Badge de conformidade */


/* Destaque para dados importantes */
strong {
  color: var(--text);
  font-weight: 600;
  background: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.95em;
}

[data-theme="dark"] strong {
  background: var(--warning);
  color: var(--text);
}

/* ================================================
   RESPONSIVIDADE
   ================================================ */

/* Mobile */
@media (max-width: 640px) {
  body {
    padding: 0 var(--space-sm);
  }
  
  main {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-lg);
  }
  
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
  }
  
  section {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  
  nav a {
    display: block;
    margin: var(--space-sm) 0;
  }
  
  main::before {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: var(--space-lg);
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  main {
    margin: var(--space-lg) var(--space-md);
  }
}

/* Desktop large */
@media (min-width: 1200px) {
  main {
    max-width: 1000px;
  }
  
  h1 {
    font-size: var(--font-size-4xl);
  }
}

/* ================================================
   ACESSIBILIDADE
   ================================================ */

/* Focus visível */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Navegação por teclado */
dt:focus {
  outline: 2px solid white;
  outline-offset: -2px;
}

/* Redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-medium: #000000;
  }
  
  section {
    border-width: 2px;
  }
  
  nav a {
    border-width: 3px;
  }
}

/* ================================================
   ANIMAÇÕES E MICRO-INTERAÇÕES
   ================================================ */

/* Animação de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeInUp 0.6s ease-out;
}

section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

/* Delay escalonado para seções */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* Hover effect para seções */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

section:hover::before {
  transform: scaleX(1);
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  main {
    box-shadow: none;
    border: 1px solid #ccc;
    max-width: none;
    margin: 0;
    padding: 1cm;
  }
  
  section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin-bottom: 0.5cm;
  }
  
  nav,
  footer {
    display: none;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  h1, h2, h3 {
    color: black;
  }
  
  main::before {
    display: none;
  }
}

/* ================================================
   DARK MODE SPECIFIC ADJUSTMENTS
   ================================================ */
[data-theme="dark"] main > p:first-of-type {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--primary);
}

[data-theme="dark"] dt {
  background: var(--primary);
}

[data-theme="dark"] strong {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent);
}

[data-theme="dark"] main::before {
  background: var(--success);
}

/* ================================================
   CUSTOM SCROLL BAR
   ================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg);
}