/* Páginas legales de FrigoChef (privacidad, privacy, eliminar-cuenta, normas-comunidad).
   La cabecera y el pie son los mismos que los de index.html: si cambias uno, cambia el otro. */
:root {
  --fondo: #0A0E15;
  --linea: rgba(255, 255, 255, .08);
  --tarjeta: rgba(255, 255, 255, .035);
  --texto: #F3F4F6;
  --cuerpo: #C9CED6;
  --suave: #9CA3AF;
  --tenue: #6B7280;
  --naranja: #F97316;
  --naranja-claro: #FB923C;
  --halo: 157, 184, 255;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--naranja); outline-offset: 3px; border-radius: 8px; }
.contenedor { width: min(1200px, 100% - 32px); margin-inline: auto; }
.estrecho { width: min(800px, 100% - 32px); }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--naranja); color: #111; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

/* Cabecera (igual que en index.html) */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 21, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.marca img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.marca span { color: var(--naranja); }
.menu { display: flex; gap: 34px; }
.menu a { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); text-decoration: none; transition: color .2s; }
.menu a:hover { color: var(--texto); }
.acciones { display: flex; align-items: center; gap: 10px; }
.idioma { display: inline-block; background: transparent; border: 1px solid var(--linea); color: var(--suave); font: 800 .74rem/1 var(--sans); letter-spacing: .12em; padding: 10px 13px; border-radius: 999px; text-decoration: none; transition: color .2s, border-color .2s; }
.idioma:hover { color: var(--texto); border-color: rgba(255, 255, 255, .25); }
.boton { display: inline-flex; align-items: center; justify-content: center; background: var(--naranja); color: #111; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; text-decoration: none; transition: background .2s, transform .2s; }
.boton:hover { background: var(--naranja-claro); transform: translateY(-1px); }

/* Portada de cada página legal */
.portada-legal { position: relative; overflow: hidden; padding: 76px 0 48px; border-bottom: 1px solid var(--linea); }
.portada-legal::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--halo), .2), transparent 72%); pointer-events: none; }
.portada-legal::after { content: ""; position: absolute; width: 560px; height: 560px; left: -280px; bottom: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(249, 115, 22, .14), transparent 72%); pointer-events: none; }
.portada-legal .contenedor { position: relative; z-index: 1; }
.ante { font-size: .76rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--naranja); }
.portada-legal h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 900; margin: 16px 0 18px; text-wrap: balance; }
.portada-legal h1 em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--naranja); letter-spacing: -.02em; padding-right: .04em; }
.subtitulo { margin: 0; color: var(--suave); font-size: 1rem; }
.subtitulo a { color: var(--naranja-claro); text-underline-offset: 3px; }

/* Texto legal */
.texto-legal { padding: 20px 0 104px; color: var(--cuerpo); font-size: 1.02rem; line-height: 1.75; }
.texto-legal > p:first-child { margin-top: 28px; font-size: 1.1rem; color: #E5E7EB; }
.texto-legal h2 { color: #fff; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; margin: 56px 0 14px; }
.texto-legal > h2:first-child { margin-top: 40px; }
.texto-legal h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--naranja); }
.texto-legal h3 { color: #fff; font-size: 1.12rem; margin: 30px 0 8px; }
.texto-legal p { margin: 0 0 16px; }
.texto-legal strong { color: #fff; font-weight: 700; }
.texto-legal a { color: var(--naranja-claro); text-decoration: underline; text-decoration-color: rgba(251, 146, 60, .45); text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.texto-legal a:hover { text-decoration-color: currentColor; }
.texto-legal ul, .texto-legal ol { margin: 0 0 18px; padding-left: 22px; }
.texto-legal li { margin: 9px 0; padding-left: 4px; }
.texto-legal li::marker { color: var(--naranja); }
.texto-legal ol li::marker { font-weight: 800; }
.texto-legal hr { border: 0; height: 1px; margin: 72px 0 0; background: var(--linea); }
.texto-legal table { width: 100%; margin: 8px 0 22px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; font-size: .94rem; line-height: 1.6; }
.texto-legal th, .texto-legal td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.texto-legal th + th, .texto-legal td + td { border-left: 1px solid var(--linea); }
.texto-legal tr:last-child td { border-bottom: 0; }
.texto-legal th { background: rgba(249, 115, 22, .1); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.texto-legal td { background: rgba(255, 255, 255, .02); }
.aviso { margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(249, 115, 22, .25); border-left: 4px solid var(--naranja); border-radius: 12px; background: rgba(249, 115, 22, .08); color: #E5E7EB; }
.pendiente { background: rgba(245, 158, 11, .15); border: 2px dashed #F59E0B; padding: 2px 6px; border-radius: 6px; font-weight: 700; color: #FDE68A; }
code { background: rgba(255, 255, 255, .07); border: 1px solid var(--linea); padding: 1px 6px; border-radius: 6px; font-size: .92em; color: #E5E7EB; }

/* Pie (igual que en index.html) */
.pie { border-top: 1px solid var(--linea); padding: 64px 0 40px; color: var(--suave); font-size: .93rem; }
.pie .rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.2fr; gap: 36px; }
.pie .marca { margin-bottom: 14px; }
.pie p { margin: 0; }
.pie h4 { margin: 4px 0 16px; color: #fff; font-size: .95rem; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.pie a { text-decoration: none; transition: color .2s; }
.pie a:hover, .pie a[aria-current="page"] { color: #fff; }
.correo { display: inline-block; margin-top: 14px; border: 1px solid rgba(249, 115, 22, .6); color: var(--naranja) !important; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; word-break: break-all; }
.correo:hover { background: rgba(249, 115, 22, .1); }
.pie .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--linea); font-size: .84rem; }
.marcas { margin: 16px 0 0; color: var(--tenue); font-size: .74rem; max-width: 920px; }

@media (max-width: 960px) {
  .menu { display: none; }
  .pie .rejilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .portada-legal { padding: 52px 0 36px; }
  .texto-legal { font-size: 1rem; padding-bottom: 80px; }
  .texto-legal h2 { font-size: 1.3rem; margin-top: 48px; }
  .marca { font-size: 1.15rem; }
  .boton { padding: 10px 16px; font-size: .76rem; }
  /* La tabla de datos pasa a tarjetas: cada fila es un bloque con sus tres apartados. */
  .texto-legal table, .texto-legal tbody, .texto-legal tr, .texto-legal td { display: block; width: 100%; }
  .texto-legal tr:first-child { display: none; }
  .texto-legal tr { padding: 6px 0; border-bottom: 1px solid var(--linea); }
  .texto-legal tr:last-child { border-bottom: 0; }
  .texto-legal td { padding: 8px 16px; border: 0 !important; background: transparent; }
  .texto-legal td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--naranja); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
}
@media (max-width: 520px) {
  .pie .rejilla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
