/* ================================
   LEGAL PAGES — heberthenrique.com.br
   Reutiliza design system do blog
   ================================ */

:root {
  --bg: #F5F5F7;
  --bg-alt: #EAEAEC;
  --surface: #FFFFFF;
  --border: #A1A1AA;
  --text: #1D1D1F;
  --text-light: #52525B;
  --primary: #2563eb;
  --primary-light: #EEF2FF;
  --radius: 10px;
  --transition: 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--primary);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.hidden { transform: translateY(-100%); }

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.hot-sup {
  font-size: 0.6rem;
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
  animation: pulse-hot 2s ease-in-out infinite;
}
@keyframes pulse-hot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Legal Page */
.legal-page { padding-top: 80px; }

.legal-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--text);
}
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.legal-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content strong { color: var(--text); }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.legal-content th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
}

/* Footer */
.lab-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.9);
  padding: 48px 48px 0;
  border-top: 2px solid var(--primary);
}
.lab-footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #27272a;
}
.lab-footer-tagline { font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 28px; }
.lab-footer-newsletter h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.lab-footer-newsletter p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.lab-footer-form { display: flex; gap: 8px; }
.lab-footer-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #27272a;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.lab-footer-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.3); }
.lab-footer-form input[type="email"]:focus { border-color: var(--primary); }
.lab-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lab-footer-col h3 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.65); margin-bottom: 16px; }
.lab-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lab-footer-col a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.lab-footer-col a:hover { color: #fff; }
.lab-footer-bottom { max-width: 960px; margin: 0 auto; padding: 24px 0; text-align: center; }
.lab-footer-bottom p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.lab-footer-bottom a { color: var(--primary); text-decoration: none; }

.lab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0 #0a0a0a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}
.lab-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0a0a0a; }
.lab-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0a0a0a; }

/* Responsive */
@media (max-width: 768px) {
  .lab-footer { padding: 40px 24px 0; }
  .lab-footer-content { grid-template-columns: 1fr; gap: 40px; }
  .lab-footer-links { grid-template-columns: 1fr 1fr; }
  .lab-footer-form { flex-direction: column; }
}

@media (max-width: 640px) {
  .legal-content { padding: 32px 16px 60px; }
  .legal-content h2 { font-size: 1.15rem; }

  .nav-toggle { display: flex; position: fixed; top: 14px; right: 16px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 50%; max-width: 200px;
    height: 100vh; height: 100dvh;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid var(--primary);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 0;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; margin-top: 24px; }
  .nav-links a { width: 100%; padding: 16px 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
  .nav-overlay.open { display: block; }
  body.nav-open { overflow: hidden; }
}
