/* ============================================================
   SIPE Protection — pàgines legals
   Fulla compartida per política de privacitat, avís legal i cookies.
   Els tokens són els mateixos de l'index; aquí només hi ha el que
   necessita un document de text llarg.
   ============================================================ */
:root{
  --blue-900:#04182F; --blue-800:#051D3B; --blue:#082B55; --blue-600:#0E3F79;
  --blue-100:#E4EBF4; --blue-50:#F2F6FB;
  --red:#D71920; --red-700:#B0141A;
  --ink:#14181D; --body:#4A5568; --muted:#6B7686;
  --line:#E3E7EC; --bg:#FFFFFF; --bg-alt:#F5F7FA; --bg-dark:#101418;
  --r-sm:6px; --r:10px; --r-lg:16px; --r-pill:999px;
  --wrap:760px; --gut:20px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --sans:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--bg);color:var(--body);
  font-family:var(--sans);font-size:1rem;line-height:1.72;
  -webkit-font-smoothing:antialiased;
}
.wrap{width:min(var(--wrap),100% - var(--gut)*2);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
a{color:var(--red);text-decoration:underline;text-underline-offset:2px}
a:not(.faro-firma):hover{color:var(--red-700)}
:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:var(--r-sm)}

/* ---------- capçalera ---------- */
.lhdr{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.6) blur(10px);border-bottom:1px solid var(--line)}
.lhdr__in{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:68px;width:min(1180px,100% - var(--gut)*2);margin-inline:auto}
.lhdr img{display:block;height:30px;width:auto}
.lhdr__act{display:flex;align-items:center;gap:.6rem}
.back{display:inline-flex;align-items:center;gap:.35rem;color:var(--blue);
  font-size:.86rem;font-weight:700;text-decoration:none}
.back:hover{color:var(--red)}
.back svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* ---------- document ---------- */
.lhero{background:var(--bg-alt);border-bottom:1px solid var(--line);
  padding-block:clamp(2.2rem,5vw,3.4rem)}
.eyebrow{display:block;color:var(--red);font-size:.74rem;font-weight:800;
  letter-spacing:.14em;text-transform:uppercase;margin-bottom:.5rem}
.lhero h1{margin:0;color:var(--blue);font-size:clamp(1.75rem,1.3rem + 2vw,2.5rem);
  font-weight:800;letter-spacing:-.025em;line-height:1.14}
.updated{margin:.9rem 0 0;color:var(--muted);font-size:.84rem}

.doc{padding-block:clamp(2.2rem,5vw,3.6rem)}
.doc h2{margin:2.6rem 0 .7rem;color:var(--blue);font-size:1.16rem;font-weight:800;
  letter-spacing:-.015em;line-height:1.35;scroll-margin-top:90px}
.doc h2:first-child{margin-top:0}
.doc h3{margin:1.6rem 0 .45rem;color:var(--ink);font-size:.98rem;font-weight:700}
.doc p{margin:0 0 1rem}
.doc ul{margin:0 0 1rem;padding-left:1.15rem}
.doc li{margin-bottom:.45rem}
.doc li::marker{color:var(--red)}
.doc strong{color:var(--ink);font-weight:700}

/* fitxa de dades de l'empresa */
.card{background:var(--blue-50);border:1px solid var(--blue-100);
  border-radius:var(--r-lg);padding:1.15rem 1.3rem;margin-bottom:1.4rem}
.card dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .9rem;margin:0;
  font-size:.92rem}
.card dt{color:var(--muted);font-weight:700}
.card dd{margin:0;color:var(--ink)}

/* dades que encara ha d'omplir el client: impossibles de passar per alt */
.gap{display:inline-block;padding:.05rem .45rem;border-radius:var(--r-sm);
  background:#FFF3C4;border:1px dashed #C79A00;color:#6B4E00;
  font-size:.82rem;font-weight:700;letter-spacing:.01em}

/* taula de cookies / emmagatzematge */
.tbl{width:100%;border-collapse:collapse;margin:0 0 1.2rem;font-size:.88rem}
.tbl th,.tbl td{text-align:left;padding:.6rem .7rem;border-bottom:1px solid var(--line);
  vertical-align:top}
.tbl th{color:var(--blue);font-weight:700;background:var(--blue-50);white-space:nowrap}
.tbl code{font-size:.85em;background:var(--blue-50);padding:.1rem .35rem;border-radius:4px}
@media(max-width:560px){
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
  .tbl thead{display:none}
  .tbl tr{border-bottom:1px solid var(--line);padding-block:.5rem}
  .tbl td{border:0;padding:.15rem .2rem}
  .tbl td::before{content:attr(data-th) " · ";color:var(--muted);font-weight:700}
}

/* ---------- peu ---------- */
.lftr{background:var(--bg-dark);color:#9AA6B4;padding-block:1.8rem;font-size:.85rem}
.lftr__in{display:flex;flex-wrap:wrap;gap:.8rem 1.6rem;align-items:center;
  justify-content:space-between}
.lftr p{margin:0}
.lftr ul{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:0;padding:0;list-style:none}
.lftr a:not(.faro-firma){color:#C7D1DC;text-decoration:none}
.lftr a:not(.faro-firma):hover{color:#fff;text-decoration:underline}
.lftr a[aria-current="page"]{color:#fff;font-weight:700}

/* només es veu l'idioma actiu; sense JS, el català */
[data-block]{display:none}
[data-block].on{display:block}
html:not(.js) [data-block="ca"]{display:block}

@media print{
  .lhdr,.lftr,.back{display:none}
  body{color:#000}
  .doc h2{color:#000}
}

/* ── Firma «Web diseñada por Faro Estudio» ──────────────────────────────
   Al entrar en pantalla, el faro da dos destellos (su «característica»,
   como los faros de verdad) y se apaga. Al pasar el ratón se enciende
   y gira: el haz sale hacia el nombre, destella al mirarte de frente
   y pasa al otro lado, como un faro visto de perfil.

   Hereda el color del footer, así que sirve para cualquier cliente.
   Footer claro → añade la clase .faro-firma--claro
   Ajustes: --faro-luz (cristal), --faro-haz (RGB del haz),
            --faro-fuerza (intensidad del haz), --faro-giro (una vuelta) */

.faro-firma{
  --faro-luz:#DDE3FF;
  --faro-haz:169 182 255;
  --faro-fuerza:1;
  --faro-mezcla:screen;
  --faro-giro:3.2s;
  position:relative;display:inline-flex;align-items:center;gap:.45em;
  padding:.45em 1em;border-radius:999px;
  color:inherit;font-size:inherit;line-height:1.2;white-space:nowrap;text-decoration:none;
  transition:background-color .25s ease;
}
.faro-firma--claro{
  --faro-luz:#6E86FF;
  --faro-haz:110 134 255;
  --faro-fuerza:.55;
  --faro-mezcla:multiply;
}
.faro-firma:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.faro-firma__pre{opacity:.72;transition:opacity .25s ease}
.faro-firma__nombre{font-weight:700;letter-spacing:.01em}

.faro-firma__faro{position:relative;flex:none;width:1.04em;height:1.3em}
.faro-firma__faro svg{display:block;width:100%;height:100%;overflow:visible}
.faro-firma__vidrio{fill:var(--faro-luz);opacity:0;transition:opacity .2s ease}

/* Todo lo que sale de la linterna nace en su centro (8, 6.9 en el viewBox) */
.faro-firma__brillo,.faro-firma__destello,.faro-firma__haz{position:absolute;left:50%;top:34.5%;pointer-events:none}
.faro-firma__brillo,.faro-firma__destello{border-radius:50%;translate:-50% -50%}
.faro-firma__brillo{
  width:1.8em;height:1.8em;opacity:0;transition:opacity .2s ease;
  background:radial-gradient(closest-side,rgb(var(--faro-haz)/calc(.9*var(--faro-fuerza))),rgb(var(--faro-haz)/calc(.22*var(--faro-fuerza))) 50%,transparent);
}
.faro-firma__luz{position:absolute;inset:0;opacity:0;mix-blend-mode:var(--faro-mezcla);transition:opacity .5s ease}
.faro-firma__haz{
  width:4.4em;height:1.25em;margin-top:-.625em;
  background:linear-gradient(90deg,rgb(var(--faro-haz)/calc(.95*var(--faro-fuerza))),rgb(var(--faro-haz)/calc(.4*var(--faro-fuerza))) 35%,transparent);
  clip-path:polygon(0 42%,100% 0,100% 100%,0 58%);
  transform-origin:0 50%;
  animation:faro-gira var(--faro-giro) linear infinite paused;
}
.faro-firma__destello{
  width:2.8em;height:2.8em;opacity:0;
  background:radial-gradient(closest-side,rgb(var(--faro-haz)/var(--faro-fuerza)),rgb(var(--faro-haz)/calc(.3*var(--faro-fuerza))) 38%,transparent);
  animation:faro-destello var(--faro-giro) linear infinite paused;
}

/* Encendido: teclado (y .is-activa para forzarlo) en cualquier dispositivo… */
.faro-firma:is(:focus-visible,.is-activa){background-color:color-mix(in srgb,currentColor 8%,transparent)}
.faro-firma:is(:focus-visible,.is-activa) .faro-firma__pre{opacity:1}
.faro-firma:is(:focus-visible,.is-activa) :is(.faro-firma__vidrio,.faro-firma__luz){opacity:1;transition-duration:.2s}
.faro-firma:is(:focus-visible,.is-activa) .faro-firma__brillo{opacity:.6}
.faro-firma:is(:focus-visible,.is-activa) :is(.faro-firma__haz,.faro-firma__destello){animation-play-state:running}
/* …y ratón solo donde hay ratón: en móvil el hover se queda pegado tras tocar */
@media (hover:hover) and (pointer:fine){
  .faro-firma:hover{background-color:color-mix(in srgb,currentColor 8%,transparent)}
  .faro-firma:hover .faro-firma__pre{opacity:1}
  .faro-firma:hover :is(.faro-firma__vidrio,.faro-firma__luz){opacity:1;transition-duration:.2s}
  .faro-firma:hover .faro-firma__brillo{opacity:.6}
  .faro-firma:hover :is(.faro-firma__haz,.faro-firma__destello){animation-play-state:running}
}

/* Llegada: dos destellos y se apaga (lo activa faro-firma.js) */
.faro-firma.is-llega :is(.faro-firma__vidrio,.faro-firma__brillo){animation:faro-llega 1.6s .35s linear backwards}

/* Un haz que gira, visto de perfil, mide cos(ángulo): por eso cada tramo
   es medio seno (sale rápido, frena en el extremo, vuelve acelerando) */
@keyframes faro-gira{
  0%  {transform:scaleX(0); animation-timing-function:cubic-bezier(.61,1,.88,1)}  /* de espaldas */
  25% {transform:scaleX(1); animation-timing-function:cubic-bezier(.12,0,.39,0)}  /* sobre el nombre */
  50% {transform:scaleX(0); animation-timing-function:cubic-bezier(.61,1,.88,1)}  /* de frente */
  75% {transform:scaleX(-1);animation-timing-function:cubic-bezier(.12,0,.39,0)}  /* al otro lado */
  100%{transform:scaleX(0)}
}
/* El destello solo existe cuando el haz te mira de frente (50 %) */
@keyframes faro-destello{
  0%,100%{opacity:0;scale:.4}
  34%{opacity:0;scale:.4;animation-timing-function:cubic-bezier(.12,0,.39,0)}
  50%{opacity:1;scale:1;animation-timing-function:cubic-bezier(.61,1,.88,1)}
  66%{opacity:0;scale:.4}
}
@keyframes faro-llega{
  0%  {opacity:0}
  6%  {opacity:1}
  17% {opacity:.08}
  27% {opacity:1;animation-timing-function:cubic-bezier(.61,1,.88,1)}
  100%{opacity:0}
}

/* Menos movimiento: sin giro ni destellos; el haz aparece quieto sobre el nombre */
@media (prefers-reduced-motion:reduce){
  .faro-firma__haz{animation:none;transform:scaleX(1)}
  .faro-firma__destello{animation:none}
  .faro-firma.is-llega :is(.faro-firma__vidrio,.faro-firma__brillo){animation:faro-llega-suave 1.4s .35s ease backwards}
}
@keyframes faro-llega-suave{0%,100%{opacity:0}40%{opacity:1}}

/* Firma Faro: regles del lloc (el bloc de dalt no es toca) */
.lftr__in .faro-firma{margin-inline:-1em}
.lftr{padding-bottom:max(1.8rem,8vh)}  /* el script de la firma la vol sencera per sobre del 6 % inferior de la pantalla: aire sota la fila */
