/*
 * Shared stylesheet for the static legal pages (/privacidad, /terminos,
 * /eliminacion-de-datos). These pages live outside the React app as plain
 * HTML under public/<slug>/index.html, so Meta's crawler (and anyone with
 * JS disabled) gets the full text with zero script execution. This file
 * mirrors the tokens in src/index.css so they still look like the same
 * site: strictly black, white and glass, no accent colour.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-ink: #07111f;
  --color-muted: #6b6b6b;
  --color-line: #e4e4e4;
  --color-surface: #fafafa;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-surface);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header: logo + name, links home. No JS theme-swap like Navbar.tsx — these
   pages are static, so it stays simple and always-light. */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  padding: 16px 24px;
}

.legal-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.legal-header img {
  height: 28px;
  width: auto;
}

.legal-header span {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

main.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

main.legal h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

main.legal .updated {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0 0 40px;
}

main.legal .lead {
  font-size: 1.05rem;
  color: #262626;
  margin: 0 0 8px;
}

main.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

main.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

main.legal h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

main.legal p,
main.legal li {
  font-size: 0.975rem;
  color: #262626;
}

main.legal ul,
main.legal ol {
  padding-left: 1.25rem;
}

main.legal li {
  margin: 6px 0;
}

main.legal strong {
  color: var(--color-ink);
}

main.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

main.legal a:hover {
  color: var(--color-muted);
}

.legal-note {
  margin-top: 48px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Footer: same black plate as Footer.tsx, same trademark disclaimer, plus
   the three legal links (Footer.tsx links here with plain <a> tags too, so
   this exact nav also appears at the bottom of the main site). */
footer.legal-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 24px;
}

footer.legal-footer .inner {
  max-width: 720px;
  margin: 0 auto;
}

footer.legal-footer a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

footer.legal-footer img {
  height: 24px;
  width: auto;
}

footer.legal-footer nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer.legal-footer nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
}

footer.legal-footer nav a:hover {
  color: #fff;
}

footer.legal-footer .fine-print {
  margin-top: 24px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  main.legal {
    padding: 32px 20px 64px;
  }

  main.legal h1 {
    font-size: 1.65rem;
  }
}
