/* Estilos de las páginas legales de Filora (mismos tokens que la página principal) */
:root {
  --white: #E5E0CA; --off: #DAD2B5; --border: #CEC19D; --ink: #261A07;
  --mid: #4D4229; --light: #6F6549; --accent: #544313; --accent-lt: #CEC19D;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 16px;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.06em; cursor: pointer; transition: all 0.18s ease;
  border: none; border-radius: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }

nav.top {
  position: sticky; top: 0; z-index: 100; background: rgba(229,224,202,0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 28px; width: auto; display: block; }
.logo-text { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.28em; color: var(--ink); }

main.legal { padding: 88px 0 120px; }
.legal-inner { max-width: 820px; }
.eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--light);
}
.legal h1 {
  font-family: 'Gloock', serif; font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 40px;
}
.legal h2 {
  font-family: 'Gloock', serif; font-weight: 400; font-size: 1.45rem; line-height: 1.25;
  margin: 56px 0 16px;
}
.legal h3 { font-weight: 500; font-size: 0.95rem; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 0.95rem; color: var(--mid); line-height: 1.75; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a.btn { color: var(--ink); text-decoration: none; }

.legal .tabla-wrap { overflow-x: auto; margin: 8px 0 24px; }
.legal table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.legal th, .legal td {
  border: 1px solid var(--border); padding: 14px 18px; text-align: left; vertical-align: top;
  font-size: 0.875rem; line-height: 1.6; color: var(--mid); font-weight: 300;
}
.legal th {
  background: var(--off); color: var(--ink); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.legal th[scope="row"] { width: 30%; }
.legal caption {
  caption-side: top; text-align: left; padding: 12px 18px; background: var(--ink); color: var(--white);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.legal td p:last-child { margin-bottom: 0; }
.legal td p { font-size: 0.875rem; margin-bottom: 8px; }
.legal .volver { margin-top: 64px; }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-copy { font-size: 0.75rem; color: var(--light); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; color: var(--light); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .container { padding: 0 24px; }
  main.legal { padding: 56px 0 80px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
  .legal th[scope="row"] { width: 36%; }
}
::selection { background: var(--ink); color: var(--white); }
