:root {
  --legal-bg: #050505;
  --legal-surface: #0c0c0c;
  --legal-surface-2: #131313;
  --legal-text: #f7f7f7;
  --legal-muted: #b7b7b7;
  --legal-line: rgba(255,255,255,.14);
  --legal-green: #60ff01;
  --legal-green-dark: #114300;
  --legal-white: #ffffff;
  --legal-radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.legal-page { margin: 0; background: var(--legal-bg); color: var(--legal-text); font-family: Manrope, Arial, sans-serif; line-height: 1.72; }
a { color: inherit; }
.legal-skip { position: fixed; left: 12px; top: -80px; z-index: 999999; background: var(--legal-green); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.legal-skip:focus { top: 12px; }
.legal-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.legal-topbar { display: flex; justify-content: center; min-height: 44px; align-items: center; border-bottom: 1px solid var(--legal-line); background: #080808; }
.legal-topbar a { color: var(--legal-green); text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: .82rem; }
.legal-header { position: sticky; top: 0; z-index: 1000; background: rgba(0,0,0,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--legal-line); }
.legal-header__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.legal-brand { display: inline-flex; align-items: center; }
.legal-brand img {
  width: 200px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}
.legal-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.legal-nav a { text-decoration: none; color: #ddd; font-weight: 700; font-size: .93rem; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--legal-green); }
.legal-cta { text-decoration: none; background: var(--legal-green); color: #000; border-radius: 999px; padding: 12px 18px; font-weight: 900; }
.legal-main { min-height: 70vh; }
.legal-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--legal-line); background: radial-gradient(circle at 82% 30%, rgba(96,255,1,.13), transparent 31%), linear-gradient(180deg, #060606, #020202); }
.legal-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 60px; align-items: end; }
.legal-kicker { display: inline-block; color: var(--legal-green); text-transform: uppercase; font-weight: 900; letter-spacing: .15em; font-size: .78rem; margin-bottom: 18px; }
.legal-hero h1 { margin: 0; max-width: 880px; font-family: 'Space Grotesk', Arial, sans-serif; font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }
.legal-hero p { max-width: 760px; margin: 28px 0 0; color: var(--legal-muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.legal-meta { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px; border: 1px solid var(--legal-line); border-radius: 20px; background: rgba(255,255,255,.035); }
.legal-meta strong { color: var(--legal-green); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.legal-meta button { border: 0; background: transparent; color: white; text-align: left; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-block: 72px 110px; }
.legal-layout--single { grid-template-columns: minmax(0, 900px); justify-content: center; }
.legal-toc { position: sticky; top: 118px; align-self: start; display: grid; gap: 8px; padding: 22px; border: 1px solid var(--legal-line); border-radius: 18px; background: var(--legal-surface); }
.legal-toc strong { color: var(--legal-green); margin-bottom: 8px; }
.legal-toc a { color: var(--legal-muted); text-decoration: none; font-size: .9rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.legal-toc a:hover { color: white; }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 120px; padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--legal-line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { font-family: 'Space Grotesk', Arial, sans-serif; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.15; margin: 0 0 20px; }
.legal-content h3 { font-size: 1.14rem; margin-top: 24px; }
.legal-content p, .legal-content li, .legal-content dd { color: #d3d3d3; }
.legal-content a { color: var(--legal-green); }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 10px; }
.legal-warning { margin-bottom: 42px; padding: 20px 22px; border: 1px solid rgba(96,255,1,.42); border-radius: 16px; background: rgba(96,255,1,.075); color: #e7ffd9; }
.legal-warning strong { color: var(--legal-green); }
.legal-identity { padding: 26px !important; margin-bottom: 24px !important; border: 1px solid var(--legal-line) !important; border-radius: 20px; background: var(--legal-surface); }
.legal-identity h2 { font-size: 1.25rem !important; }
.legal-identity dl { display: grid; gap: 0; margin: 0; }
.legal-identity dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.legal-identity dt { color: var(--legal-green); font-weight: 800; }
.legal-identity dd { margin: 0; overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--legal-line); border-radius: 16px; }
.legal-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--legal-surface); }
.legal-table th, .legal-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--legal-line); }
.legal-table th { color: var(--legal-green); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-footer { border-top: 1px solid var(--legal-line); background: #000; padding: 64px 0 24px; }
.legal-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.legal-footer__logo {
  width: 230px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}
.legal-footer p, .legal-footer span { color: var(--legal-muted); }
.legal-footer h2 { color: white; font-size: 1rem; }
.legal-footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.legal-footer a, .legal-footer__button { color: var(--legal-muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.legal-footer a:hover, .legal-footer__button:hover { color: var(--legal-green); }
.legal-footer__bottom { border-top: 1px solid var(--legal-line); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: .86rem; }
/* Consentimiento — estilos en css/cookie-consent.css (cargar después de legal.css) */
.pdp-consent-lock { overflow: hidden; }
.pdp-cookie-modal[hidden], .pdp-cookie-banner[hidden] { display: none !important; }
@media (max-width: 860px) {
  .legal-wrap { width: min(100% - 28px, 1180px); }
  .legal-nav { display: none; }
  .legal-header__inner { min-height: 70px; }
  .legal-brand img {
  width: 125px;
  height: 58px;
}
  .legal-hero { padding: 72px 0 54px; }
  .legal-hero__grid, .legal-layout, .legal-footer__grid { grid-template-columns: 1fr; }
  .legal-layout { gap: 34px; padding-block: 44px 80px; }
  .legal-toc { position: static; }
  .legal-footer__grid { gap: 34px; }
}
@media (max-width: 560px) {
  .legal-topbar a { font-size: .72rem; }
  .legal-cta { padding: 10px 13px; font-size: .84rem; }
  .legal-hero h1 { font-size: clamp(2.25rem, 13vw, 3.55rem); }
  .legal-identity dl > div { grid-template-columns: 1fr; gap: 2px; }
  .legal-footer__bottom { flex-direction: column; }
}

/* =========================================================
   LOGOS PÁGINAS LEGALES - AJUSTE VISUAL FINAL
   ========================================================= */

/* Logo del menú superior */
.legal-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.legal-brand img {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: none;
}

/* Logo del footer */
.legal-footer__logo {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
  transform: none;
}

/* Tablet y móvil */
@media (max-width: 860px) {

  .legal-brand img {
   width: 170px;
    height: auto;
    transform: none;
  }

  .legal-footer__logo {
    width: 180px;
    height: auto;
    transform: none;
  }

}

/* Logo menú - móvil */
@media (max-width: 560px) {
  .legal-brand img {
    width: 155px;
    height: auto;
    transform: none;
  }
}
