/* ========================================
   POLÍTICA DE PRIVACIDAD - CreaYVendelo
   Diseño moderno + animaciones
======================================== */

:root {
  --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #ff5e94 50%, #a855f7 100%);
  --primary-color: #ff6b35;
  --secondary-color: #a855f7;
  --accent-color: #ff5e94;
  --text-dark: #1a1a2e;
  --text-muted: #5a5a7a;
  --text-soft: #8a8aa0;
  --bg-light: #ffffff;
  --bg-section: #f8f9ff;
  --card-bg: #ffffff;
  --border-soft: rgba(26, 26, 46, 0.06);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.05);
  --shadow-md: 0 12px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 25px 60px rgba(26, 26, 46, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   HERO LEGAL
======================================== */
.legal-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
  isolation: isolate;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.legal-hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  will-change: transform;
}

.orb-legal-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #ff6b35, transparent 70%);
  top: -200px; right: -120px;
  animation: orbFloatA 18s ease-in-out infinite alternate;
}
.orb-legal-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -150px; left: -100px;
  animation: orbFloatB 22s ease-in-out infinite alternate;
}

@keyframes orbFloatA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes orbFloatB {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.06); }
}

.legal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 46, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.55;
}

.legal-hero-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legal-breadcrumb a:hover { color: var(--primary-color); }
.legal-breadcrumb i { font-size: 0.7rem; opacity: 0.6; }
.legal-breadcrumb span { color: var(--text-dark); font-weight: 700; }

/* Badge */
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

/* Título */
.legal-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Subtítulo */
.legal-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}
.legal-subtitle strong { color: var(--text-dark); font-weight: 700; }

/* Meta: fecha, ámbito, cumplimiento */
.legal-meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.legal-meta-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.legal-meta-item i {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 6px 15px rgba(255, 107, 53, 0.25);
}

.legal-meta-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-meta-item span {
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 700;
}

/* ========================================
   SECCIÓN PRINCIPAL + SIDEBAR
======================================== */
.legal-section {
  padding: 4rem 0 6rem;
  background: #ffffff;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Reveal animations (las escucha el footer.php) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal[data-reveal="zoom"] { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ========================================
   SIDEBAR ÍNDICE (sticky)
======================================== */
.legal-sidebar {
  position: sticky;
  top: 100px;
}

.legal-toc {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}

.toc-title i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 53, 0.35) transparent;
}

.legal-toc nav::-webkit-scrollbar {
  width: 4px;
}
.legal-toc nav::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.35);
  border-radius: 10px;
}

.toc-link {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  position: relative;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--text-dark);
  background: rgba(255, 107, 53, 0.05);
  transform: translateX(2px);
}

.toc-link.active {
  color: var(--primary-color);
  background: rgba(255, 107, 53, 0.08);
  border-left-color: var(--primary-color);
  font-weight: 700;
}

/* ========================================
   CONTENIDO LEGAL
======================================== */
.legal-content {
  max-width: 100%;
  min-width: 0;
}

/* Intro destacada */
.legal-intro {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.legal-intro::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 4px 0 0 4px;
}

.legal-intro p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0;
}

/* Bloques numerados */
.legal-block {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.legal-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.legal-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  background-size: 200% 200%;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.28);
  transition: transform 0.4s var(--ease-out), background-position 0.5s ease;
}

.legal-block:hover .legal-number {
  transform: rotate(-6deg) scale(1.08);
  background-position: 100% 50%;
}

.legal-heading {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0;
}

.legal-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-block p strong { color: var(--text-dark); font-weight: 700; }

.legal-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-block a:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Listas */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-list li strong { color: var(--text-dark); font-weight: 700; }

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.legal-list-ordered {
  counter-reset: ordered;
}

.legal-list-ordered li {
  counter-increment: ordered;
  padding-left: 2.25rem;
}

.legal-list-ordered li::before {
  content: counter(ordered);
  left: 0;
  top: 0.1rem;
  width: 24px;
  height: 24px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
}

/* Callouts */
.legal-callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid;
}

.legal-callout i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.legal-callout strong { font-weight: 700; }

.legal-callout-warning {
  background: rgba(255, 193, 7, 0.07);
  border-color: rgba(255, 193, 7, 0.25);
  color: #8a6600;
}
.legal-callout-warning i { color: #e0a000; }

.legal-callout-info {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.2);
  color: #5a3a88;
}
.legal-callout-info i { color: var(--secondary-color); }

/* Derechos - grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.right-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 1.25rem;
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.right-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.right-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: #fff !important;
}

.right-card:hover::before { opacity: 1; }
.right-card:hover i,
.right-card:hover h4,
.right-card:hover p { color: #fff !important; -webkit-text-fill-color: #fff; }

.right-card i {
  font-size: 1.3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.right-card h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
  transition: color 0.3s ease;
}

.right-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  transition: color 0.3s ease;
}

/* Divisor seccional */
.legal-divider {
  position: relative;
  margin: 4rem 0 3rem;
  text-align: center;
}

.legal-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft), transparent);
}

.legal-divider span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-divider span i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Permisos (app) */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.permission-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  transition: all 0.4s var(--ease-out);
  text-align: left;
}

.permission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.25);
}

.permission-icon {
  width: 44px; height: 44px;
  background: var(--primary-gradient);
  background-size: 200% 200%;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
  transition: transform 0.3s var(--ease-out), background-position 0.5s ease;
}

.permission-card:hover .permission-icon {
  transform: scale(1.08) rotate(-6deg);
  background-position: 100% 50%;
}

.permission-card h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.4rem;
}

.permission-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Tabla Data Safety */
.data-safety-table {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.data-safety-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.7fr;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  align-items: center;
}

.data-safety-row:last-child { border-bottom: none; }

.data-safety-row:hover:not(.data-safety-header) {
  background: rgba(255, 107, 53, 0.03);
}

.data-safety-header {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(168, 85, 247, 0.08));
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-safety-row div:first-child { color: var(--text-dark); }
.data-safety-row:not(.data-safety-header) div:last-child { color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag-yes {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.tag-no {
  background: rgba(168, 85, 247, 0.08);
  color: var(--secondary-color);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.tag-partial {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(255, 107, 53, 0.22);
}

/* Contact box */
.contact-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 20px;
  padding: 1.75rem;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-item i {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.25);
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item span {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  word-break: break-word;
}

.contact-item a:hover {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bloque de agradecimiento */
.legal-thanks {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-thanks::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.legal-thanks i {
  font-size: 2.5rem;
  background: var(--primary-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.85rem;
  display: inline-block;
  animation: gradientShift 5s ease-in-out infinite, heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.legal-thanks h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.legal-thanks p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-thanks .btn-hero-primary {
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--primary-gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-position 0.5s ease;
}

.legal-thanks .btn-hero-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 50px rgba(255, 107, 53, 0.38);
}

.legal-thanks .btn-hero-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}

.legal-thanks .btn-hero-primary:hover::before { left: 130%; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: relative;
    top: 0;
    order: -1;
  }

  .legal-toc {
    padding: 1.25rem;
  }

  .legal-toc nav {
    max-height: 280px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    overflow-y: auto;
  }

  .toc-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
    border-left: none;
    background: rgba(255, 107, 53, 0.04);
  }

  .toc-link.active {
    border-left: none;
  }

  .rights-grid,
  .permissions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-hero { padding: 110px 0 50px; }
  .legal-hero-container { padding: 0 1.5rem; }
  .legal-container { padding: 0 1.5rem; }

  .legal-meta { gap: 0.75rem; }
  .legal-meta-item {
    width: 100%;
    max-width: 360px;
  }

  .legal-number { width: 44px; height: 44px; font-size: 1rem; }
  .legal-heading { font-size: 1.25rem; }

  .legal-block-header { gap: 0.75rem; }

  .rights-grid,
  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .legal-intro { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .legal-intro p { font-size: 0.96rem; }

  /* Data Safety table → mobile cards */
  .data-safety-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
  }

  .data-safety-row.data-safety-header {
    display: none;
  }

  .data-safety-row:not(.data-safety-header) > div {
    font-size: 0.88rem;
  }

  .data-safety-row:not(.data-safety-header) > div:first-child {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 0.35rem;
  }

  .data-safety-row:not(.data-safety-header) > div:nth-child(2)::before {
    content: "Se recopila: ";
    font-weight: 600;
    color: var(--text-soft);
  }
  .data-safety-row:not(.data-safety-header) > div:nth-child(3)::before {
    content: "Se comparte: ";
    font-weight: 600;
    color: var(--text-soft);
  }
  .data-safety-row:not(.data-safety-header) > div:nth-child(4)::before {
    content: "Uso: ";
    font-weight: 600;
    color: var(--text-soft);
  }

  .legal-thanks { padding: 2.25rem 1.5rem; }
  .legal-thanks h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .legal-hero-container { padding: 0 1.25rem; }
  .legal-container { padding: 0 1.25rem; }

  .legal-title { font-size: 2.1rem; }
  .legal-subtitle { font-size: 0.96rem; }

  .legal-block-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .legal-heading { font-size: 1.15rem; }

  .legal-meta-item { padding: 0.75rem 1rem; }
  .legal-meta-item i { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gradient-orb { display: none; }
}
