/* Shared styles for legal pages (aviso-legal, privacidad, cookies) */

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

:root {
  --bg: #09090b;
  --bg-raised: #0f0f13;
  --bg-card: #131318;
  --text: #f0f0f3;
  --text-secondary: #b0b0be;
  --text-muted: #8a8a97;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

/* NAV (minimal) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

nav .container {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}

.nav-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  font-size: 0.75rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.04em; flex-shrink: 0;
}

.nav-logo .logo-accent { color: var(--accent); }

.nav-back {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-back:hover { color: var(--accent); background: var(--accent-glow); }

/* LEGAL CONTENT */
.legal {
  padding: 80px 0 100px;
}

.legal .legal-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal section { margin-bottom: 40px; }

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal p:last-child { margin-bottom: 0; }

.legal strong { color: var(--text); font-weight: 600; }

.legal ul, .legal ol {
  color: var(--text-secondary);
  padding-left: 22px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }

.legal a {
  color: var(--accent-light);
  border-bottom: 1px dotted var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}
.legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal thead {
  background: rgba(6, 182, 212, 0.08);
}

.legal th, .legal td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.legal tr:last-child td { border-bottom: none; }

/* FOOTER */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--text-secondary);
}

.footer-logo .nav-logo-mark {
  width: 26px; height: 26px;
  font-size: 0.65rem;
  border-width: 1px;
}

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0,0,0,0.35);
}

.wa-float svg { width: 30px; height: 30px; }

.wa-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal { padding: 56px 0 72px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wa-float::before { display: none; }
}
