/* Pagina /legal: texto largo, una columna, sin JS. Mismos colores que el resto
   del sitio (violeta #7C3AED, tinta #1F2430, fondo oscuro #1B1530). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: #fff;
  color: #1F2430;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #6D28D9; text-underline-offset: 3px; }
a:hover { color: #5B21B6; }
:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; background: #7C3AED; color: #fff;
  border-radius: 0 0 12px 0; font: 600 14px/1 Inter, system-ui, sans-serif;
}
.skip:focus { left: 0; }

.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31,36,48,.08);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #1F2430; text-decoration: none; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
}
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #6366F1 100%);
}
.back { font-size: 14px; font-weight: 600; text-decoration: none; color: #1F2430; padding: 8px 12px; border-radius: 10px; }
.back:hover { background: #F5F0FF; color: #5B21B6; }

main { max-width: 780px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 32px) 96px; }

.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #7C3AED; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.meta { margin: 24px 0 0; padding: 18px 20px; border-radius: 16px; background: #F5F3FB; font-size: 14.5px; line-height: 1.7; color: #3B3F4E; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tabs a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(124,58,237,.3); color: #5B21B6; font-size: 14px; font-weight: 700; text-decoration: none;
}
.tabs a:hover { background: #F5F0FF; }

.doc { margin-top: 72px; }
.doc h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
.doc h3 { margin: 40px 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: #343846; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: #A78BFA; }
.doc strong { color: #1F2430; font-weight: 700; }

.tbl { margin: 8px 0 18px; overflow-x: auto; border-radius: 14px; border: 1px solid rgba(31,36,48,.1); }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; line-height: 1.55; }
th { text-align: left; padding: 12px 16px; background: #F5F3FB; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5B21B6; }
td { padding: 14px 16px; vertical-align: top; border-top: 1px solid rgba(31,36,48,.08); color: #343846; }
td:first-child { width: 34%; }

.foot { padding: 44px clamp(20px, 5vw, 48px) 20px; background: #150F26; font-size: 13.5px; color: #8F88A8; }
.foot-cols { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 32px; }
.foot-cols p { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #C9BCF2; }
.foot button { background: none; border: 0; padding: 0; font: inherit; color: #C9BCF2; text-align: left; cursor: pointer; }
.foot-brand p { margin: 16px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot-brand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-brand a { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand .foot-logo { gap: 10px; color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.foot-brand .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #6366F1 100%); }
.foot-ver { max-width: 1160px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(201,188,242,.12); font-size: 12px; color: #6F6888; text-align: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .bar, .tabs, .skip, .foot { display: none; }
  main { max-width: none; padding: 0; }
  .doc { margin-top: 32px; }
}
