.inner-page.legal-page{max-width:1200px;min-height:70vh;margin:0 auto;padding:170px 4% 85px;background:transparent;color:#3a2344}
.legal-paper{width:min(860px,100%);margin:0 auto;background:#fffdf9;border:1px solid #e8d8df;border-radius:20px;padding:clamp(22px,5vw,55px);box-shadow:0 16px 50px rgba(58,35,68,.08);line-height:1.75}
.inner-page.legal-page .legal-paper h1{font-size:clamp(2rem,4vw,3rem);font-weight:400;line-height:1.2;margin:0 0 24px;color:#3a2344}
.inner-page.legal-page .legal-paper h2{font-size:1.45rem;font-weight:400;margin:34px 0 12px;color:#5c3563}
.legal-paper h3{font-size:1.13rem;margin:20px 0 6px}
.legal-paper p{margin:12px 0}
.legal-paper a{color:#633a73;text-decoration:underline;text-underline-offset:3px}
.legal-paper a:focus-visible{outline:3px solid #9a5fb1;outline-offset:3px}
.legal-notice{border-left:4px solid #f0d2a2;background:#fbf5ef;padding:14px 18px;border-radius:0 10px 10px 0}

.footer-collaborator{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin:18px auto 8px;text-align:center}
.footer-collaborator span{font-size:.85rem;opacity:.9}
.footer-collaborator a{display:inline-block;border-radius:8px;line-height:0}
.footer-collaborator a:focus-visible{outline:3px solid #f0d2a2;outline-offset:4px}
.footer-collaborator img{width:132px;height:auto;max-width:35vw;border-radius:8px}

.video-consent{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;min-height:220px;background:#261c30;color:#fff;border:0;border-radius:12px;padding:20px;cursor:pointer;text-align:center;font:inherit}
.video-consent>span{font-size:2.4rem;line-height:1;color:#f0d2a2}.video-consent>strong{font-size:1.1rem}.video-consent small{max-width:320px;line-height:1.5;font-size:.79rem}
.video-consent .video-cookie-link{color:#f0d2a2;text-decoration:underline}.video-consent:focus-visible{outline:3px solid #f0d2a2;outline-offset:3px}

/* Reserva l'espai del fris de les pàgines interiors, també en mòbil. */
@media(max-width:760px){.inner-page.legal-page{padding:136px 5% 64px}.legal-paper{padding:24px 20px}.inner-page.legal-page .legal-paper h1{font-size:clamp(2rem,7vw,2.5rem)}}

/* Peu de pàgina: informació d'EnCantem i monograma de l'entitat col·laboradora a la dreta. */
.footer .footer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,230px);align-items:center;gap:clamp(20px,5vw,65px);max-width:1120px;margin:0 auto}
.footer .footer-information{text-align:center;min-width:0}
.footer .footer-collaborator{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;text-align:center}
.footer .footer-collaborator span{font-size:.85rem;opacity:.9}
.footer .footer-collaborator img{display:block;width:min(176px,100%);max-width:100%;height:auto;border-radius:0}
.footer .footer-collaborator a{display:block;max-width:100%;line-height:0}
@media(max-width:760px){.footer .footer-layout{grid-template-columns:minmax(0,1fr) 112px;gap:12px}.footer .footer-collaborator{gap:8px}.footer .footer-collaborator span{font-size:.7rem;line-height:1.4}.footer .footer-collaborator img{width:108px}.footer .footer-information .footlogo{font-size:clamp(20px,5vw,28px)}}
@media(max-width:390px){.footer .footer-layout{grid-template-columns:minmax(0,1fr) 90px;gap:8px}.footer .footer-collaborator img{width:88px}}

/* Fulls legals: mateix paper il·lustrat de Contacte i de les fitxes de cançons. */
body:has(.legal-page){
  background:#f5e3dd;
  background-image:url('/static/song-foliage-reference-v2.svg'),url('/static/song-foliage-reference-v2.svg'),
    radial-gradient(ellipse at 0% 65%,#d5b6c5 0%,transparent 31%),
    radial-gradient(ellipse at 100% 65%,#d5b6c5 0%,transparent 31%),
    linear-gradient(90deg,#efdbdb 0%,#f8e9dd 12%,#f9e8da 50%,#f8e9dd 88%,#efdbdb 100%);
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-position:left bottom,right bottom,left,right,center;
  background-size:clamp(110px,16vw,260px) 100vh,clamp(110px,16vw,260px) 100vh,cover,cover,cover;
  background-attachment:fixed,fixed,scroll,scroll,scroll;
}
body:has(.legal-page) main{background:transparent;overflow:visible}
.inner-page.legal-page{
  box-sizing:border-box;width:min(94%,1250px);max-width:1250px;
  padding:155px 0 65px;margin:0 auto;background:transparent;
}
.legal-page .legal-paper{
  box-sizing:border-box;width:100%;max-width:none;position:relative;isolation:isolate;
  background-color:#fff8ef;
  background-image:url('/static/encantem-isotip-curt.svg'),
    url('/static/encantem-isotip-curt.svg');
  background-position:right 32px top 28px,left 32px bottom 28px;
  background-size:46px 58px,46px 58px;
  background-repeat:no-repeat,no-repeat;
  border:2px solid #deb9c2;border-radius:27px;
  padding:clamp(46px,5vw,72px) clamp(29px,6vw,90px) clamp(86px,7vw,110px);
  box-shadow:0 0 0 6px #fcf1e8,0 0 0 8px #d7afbf,0 18px 40px #53334b20;
}
.legal-page .legal-paper::before{
  content:"";position:absolute;inset:13px;border:1px solid #e5ccd0;
  border-radius:17px;pointer-events:none;
}
.legal-page .legal-paper>*{position:relative;z-index:1;max-width:920px}
.inner-page.legal-page .legal-paper h1{
  font:normal clamp(39px,5vw,64px)/1.12 Georgia,serif;
  color:#502b58;margin:0 0 28px;
  padding-right:50px;
}
.inner-page.legal-page .legal-paper h2{
  font:normal clamp(25px,2.7vw,33px)/1.28 Georgia,serif;
  color:#5d315f;margin:34px 0 13px;
}
.legal-page .legal-paper h3{font:normal 22px/1.35 Georgia,serif;color:#5d315f}
.legal-page .legal-paper p{font-size:15px;line-height:1.8;color:#4b3a4c;margin:13px 0}
@media(max-width:760px){
  body:has(.legal-page){background-size:82px 100vh,82px 100vh,cover,cover,cover}
  .inner-page.legal-page{width:calc(100% - 27px);max-width:none;padding:118px 0 48px}
  .legal-page .legal-paper{padding:37px 22px 74px;border-radius:22px;
    background-position:right 16px top 16px,left 16px bottom 16px;
    background-size:30px 38px,30px 38px}
  .legal-page .legal-paper::before{inset:8px;border-radius:16px}
  .inner-page.legal-page .legal-paper h1{font-size:clamp(34px,8vw,43px);padding-right:34px}
  .inner-page.legal-page .legal-paper h2{font-size:25px}
}

/* Peu equilibrat: marca EnCantem — col·laboració al centre — marca BN. */
.footer .footer-layout{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);
  gap:clamp(12px,3vw,38px);align-items:center;
  max-width:1120px;margin:0 auto;
}
.footer .footer-brand,.footer .footer-bn-brand{
  display:flex;align-items:center;justify-content:center;
  min-width:0;line-height:0;text-decoration:none;
}
.footer .footer-brand img{display:block;width:min(174px,100%);height:auto;max-height:115px;object-fit:contain}
.footer .footer-bn-brand img{display:block;width:min(105px,100%);height:auto;object-fit:contain}
.footer .footer-information{text-align:center;min-width:0}
.footer .footer-information .footer-collaboration{
  font:normal 14px/1.4 Georgia,serif;color:#fff5eb;margin:0 0 17px;
}
.footer .footer-brand:focus-visible,.footer .footer-bn-brand:focus-visible{
  outline:3px solid #f0d2a2;outline-offset:7px;border-radius:8px;
}
@media(max-width:760px){
  .footer .footer-layout{grid-template-columns:minmax(65px,.75fr) minmax(0,2fr) minmax(56px,.75fr);gap:7px}
  .footer .footer-brand img{width:100%;max-width:115px}
  .footer .footer-bn-brand img{width:100%;max-width:69px}
  .footer .footer-information .footer-collaboration{font-size:12px;margin-bottom:10px}
  .footer .footer-information p{font-size:11px}
}
@media(max-width:420px){
  .footer .footer-layout{grid-template-columns:60px minmax(0,1fr) 52px;gap:6px}
  .footer .footer-information .footer-collaboration{font-size:11px}
  .footer .footer-information p{font-size:10px}
}

/* Ajust final: acostar les marques al text central i fer visible el vincle. */
.footer .footer-layout{max-width:940px;grid-template-columns:minmax(0,.9fr) minmax(0,1.45fr) minmax(0,.9fr);gap:clamp(8px,2vw,24px)}
.footer .footer-information .footer-collaboration a{color:#fff5eb;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.footer .footer-information .footer-collaboration a:hover{color:#f0d2a2}
@media(max-width:760px){.footer .footer-layout{grid-template-columns:minmax(65px,.75fr) minmax(0,2fr) minmax(56px,.75fr);gap:7px}}
@media(max-width:420px){.footer .footer-layout{grid-template-columns:60px minmax(0,1fr) 52px;gap:6px}}

/* Els enllaços legals del peu no són botons: mateix fons que la resta de navegació. */
.footer .footer-legal-links,
.footer .footer-legal-links a,
.footer .footer-legal-links a:link,
.footer .footer-legal-links a:visited,
.footer .footer-legal-links a:hover,
.footer .footer-legal-links a:active{
  background:transparent;
  background-color:transparent;
  box-shadow:none;
  border:0;
  border-radius:0;
  color:inherit;
  text-decoration:none;
}
.footer .footer-legal-links a:hover{text-decoration:underline;text-underline-offset:3px}
.footer .footer-legal-links a:focus-visible{outline:2px solid #f0d2a2;outline-offset:3px}

/* Safari: evitar el rectangle gris de selecció només en els tres enllaços legals. */
.footer .footer-legal-links::selection,
.footer .footer-legal-links a::selection,
.footer .footer-legal-links a *::selection{
  background-color:transparent;
  color:#fff;
}
.footer .footer-legal-links a{-webkit-tap-highlight-color:transparent}

/* En Safari el gris visible era la selecció de text, no un fons del peu.
   Evitem la selecció exclusivament en aquesta fila de navegació, sense
   impedir els clics ni la navegació per teclat. */
.footer .footer-legal-nav,
.footer .footer-legal-nav a{
  -webkit-user-select:none;
  user-select:none;
  background:transparent;
  background-color:transparent;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}
.footer .footer-legal-nav::selection,
.footer .footer-legal-nav a::selection{
  background:transparent;
}
