:root{
  --bg:#060606;
  --bg-2:#0a0a0a;
  --card:#101010;
  --card-2:#161616;
  --text:#f5f5f5;
  --muted:#c6c6c6;
  --red:#ff101d;
  --red-dark:#c4000b;
  --line:rgba(255,255,255,.08);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:22px;
  --max:1180px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255,16,29,.16), transparent 24%),
    radial-gradient(circle at left center, rgba(255,16,29,.07), transparent 28%),
    linear-gradient(180deg,#080808 0%,#050505 100%);
  color:var(--text);
  min-height:100vh;
}

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

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(100% - 32px,var(--max));
  margin:0 auto;
}

/* HEADER */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  background:rgba(6,6,6,.86);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  font-weight:800;
  letter-spacing:.4px;
}

.brand img{
  width:135px;
  height:72px;
  object-fit:contain;
  flex-shrink:0;
  background:transparent;
}

.brand-text small{
  color:var(--red);
  display:block;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.brand-text div{
  color:#fff;
  font-size:1.05rem;
  font-weight:800;
}

.back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--red) 0%,var(--red-dark) 100%);
  color:#fff;
  font-weight:800;
  box-shadow:0 12px 24px rgba(255,16,29,.20);
  transition:.2s ease;
}

.back-link:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(255,16,29,.28);
}

/* CONTENIDO LEGAL */
.legal-page{
  padding:56px 0 42px;
}

.legal-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,var(--card),var(--card-2));
  border:1px solid var(--line);
  border-radius:28px;
  padding:clamp(24px,4vw,46px);
  box-shadow:var(--shadow);
}

.legal-card::before{
  content:"";
  position:absolute;
  top:-120px;
  right:-100px;
  width:320px;
  height:320px;
  background:radial-gradient(circle,rgba(255,16,29,.16),transparent 70%);
  pointer-events:none;
}

.legal-card h1{
  position:relative;
  margin:0 0 18px;
  font-size:clamp(2.2rem,5vw,4.2rem);
  line-height:.95;
  text-transform:uppercase;
  letter-spacing:-.03em;
}

.legal-card h1::after{
  content:"";
  display:block;
  width:88px;
  height:5px;
  margin-top:18px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--red),var(--red-dark));
}

.legal-card h2{
  margin:34px 0 12px;
  font-size:clamp(1.25rem,2.4vw,1.75rem);
  text-transform:uppercase;
  color:#fff;
}

.legal-card h2::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:10px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 18px rgba(255,16,29,.5);
  vertical-align:middle;
}

.legal-card p,
.legal-card li{
  color:var(--muted);
  line-height:1.75;
  font-size:1.02rem;
}

.legal-card p{
  margin:0 0 15px;
}

.legal-card .intro{
  position:relative;
  color:#ededed;
  font-size:1.08rem;
  max-width:78ch;
  margin-bottom:28px;
}

.legal-card ul{
  margin:10px 0 20px;
  padding-left:22px;
}

.legal-card li{
  margin:7px 0;
}

.legal-card strong{
  color:#fff;
}

/* BLOQUES DE DATOS */
.legal-data{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:26px 0 30px;
}

.legal-item{
  padding:18px 18px 17px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  border:1px solid var(--line);
}

.legal-item strong{
  display:block;
  margin-bottom:7px;
  color:var(--red);
  text-transform:uppercase;
  font-size:.78rem;
  letter-spacing:.09em;
}

.legal-item span{
  color:var(--text);
  line-height:1.55;
}

/* FOOTER */
footer{
  padding:10px 0 42px;
  color:#bcbcbc;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:nowrap;
  border-top:1px solid var(--line);
  padding-top:22px;
}

.footer-links{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer-links a{
  color:#bcbcbc;
  font-weight:700;
  transition:.2s ease;
}

.footer-links a:hover{
  color:var(--red);
}

/* RESPONSIVE */
@media (max-width:680px){
  .container{
    width:min(100% - 22px,var(--max));
  }

  .nav{
    gap:10px;
    padding:10px 0;
  }

  .brand{
    gap:9px;
  }

  .brand img{
    width:82px;
    height:48px;
  }

  .brand-text div{
    font-size:.92rem;
  }

  .brand-text small{
    font-size:.62rem;
  }

  .back-link{
    min-height:42px;
    padding:0 15px;
    font-size:.88rem;
    white-space:nowrap;
  }

  .legal-page{
    padding:34px 0 28px;
  }

  .legal-card{
    border-radius:22px;
    padding:22px 18px;
  }

  .legal-data{
    grid-template-columns:1fr;
  }

  .legal-card p,
  .legal-card li{
    font-size:.98rem;
  }

  .footer-inner{
    align-items:flex-start;
  }
}

.footer-links a,
.footer-links .cookie-preferences-link{
  vertical-align:middle;
}

@media (max-width:900px){
  .footer-inner{
    flex-wrap:wrap;
    justify-content:center;
    text-align:center;
  }

  .footer-links{
    justify-content:center;
  }
}