/* ==========================================================================
   Serveis Socials · Ajuntament de Sant Just Desvern
   Full d'estils únic del web estàtic.
   Índex:
     1. Tipografies (allotjades al propi servidor, carpeta /fonts/)
     2. Variables (colors, espais) i temes de color per apartat
     3. Base i accessibilitat
     4. Capçalera: franja negra + banda "serveis socials" + menú (4b: cercador general)
     5. Campanya (títol "L'Ajuntament t'acompanya!")
     6. Portada: botó i targetes d'apartats
     7. Pàgines d'apartat: columna + bàner lateral
     8. Llista de serveis desplegables
     9. Bloc de contacte dels Serveis Socials Bàsics
    10. Peu de pàgina
    11. Avís de galetes
    12. Impressió i moviment reduït
   ========================================================================== */

/* 1. Tipografies ---------------------------------------------------------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/opensans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Variables ----------------------------------------------------------- */
:root {
  /* Colors corporatius de la campanya (els mateixos del web original) */
  --c-blue: #2c74b5;
  --c-red: #e2001a;
  --c-teal: #32b6b0;
  --c-pink: #e42e87;
  --c-grey-title: #606060;

  /* Capçalera i peu (com l'original: negre + gris fosc) */
  --c-topbar: #000;
  --c-band: #414141;
  --c-band-text: #d2d2d2;
  --c-footer: #1c1c1c;

  /* Text i superfícies */
  --c-text: #1f2328;
  --c-muted: #555b62;
  --c-bg: #ffffff;
  --c-soft: #f4f5f7;
  --c-line: #e3e5e8;

  /* Tema per defecte (blau). Cada apartat el canvia amb una classe al <body>. */
  --accent: var(--c-blue);       /* fons, filets, icones */
  --accent-ink: var(--c-blue);   /* text en color (contrast AA sobre blanc) */
  --accent-soft: #eaf2fa;        /* fons suau */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .07);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Roboto", "Open Sans", system-ui, sans-serif;
}

/* Temes de color per apartat (mateix color que el títol de cada pàgina original) */
.theme-red   { --accent: var(--c-red);  --accent-ink: #e2001a; --accent-soft: #fdecee; }
.theme-teal  { --accent: var(--c-teal); --accent-ink: #1b7f7a; --accent-soft: #e8f6f5; }
.theme-pink  { --accent: var(--c-pink); --accent-ink: #c2186f; --accent-soft: #fcebf3; }
.theme-blue  { --accent: var(--c-blue); --accent-ink: #2c74b5; --accent-soft: #eaf2fa; }

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. Capçalera -------------------------------------------------------------- */
.topbar { background: var(--c-topbar); color: #fff; }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em;
}
.brand img { width: 40px; height: 40px; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; transition: background-color .15s;
}
.social a:hover { background: rgba(255, 255, 255, .16); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.masthead { background: var(--c-band); color: var(--c-band-text); }
.masthead .wrap { padding-top: clamp(18px, 3vw, 30px); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-title {
  font-family: var(--font-title); font-weight: 400; margin: 0;
  font-size: clamp(1.7rem, 5.2vw, 3.3rem); line-height: 1.05; letter-spacing: -.015em;
}
.site-title a { color: var(--c-band-text); text-decoration: none; }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.main-nav ul {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 18px 0 0;
}
.main-nav a {
  position: relative; display: block; padding: 12px 14px 16px;
  color: #fff; text-decoration: none; font-size: .95rem; font-weight: 600;
  border-radius: 8px 8px 0 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px;
  border-radius: 4px 4px 0 0; background: transparent; transition: background-color .15s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .08); }
.main-nav a:hover::after { background: rgba(255, 255, 255, .45); }
.main-nav a[aria-current="page"]::after { background: var(--nav-accent, var(--accent)); }
.main-nav li[data-theme="red"]  { --nav-accent: var(--c-red); }
.main-nav li[data-theme="teal"] { --nav-accent: var(--c-teal); }
.main-nav li[data-theme="pink"] { --nav-accent: var(--c-pink); }
.main-nav li[data-theme="blue"] { --nav-accent: var(--c-blue); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 0 18px; }
  .main-nav a { padding: 12px 12px 12px 18px; border-radius: 8px; }
  .main-nav a::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; border-radius: 0 4px 4px 0; }
  .masthead .wrap { padding-bottom: 14px; }
  .js .masthead .wrap { padding-bottom: 18px; }
}

/* 4b. Cercador general (capçalera) — js/cerca.js -------------------------- */
.masthead-row { flex-wrap: wrap; }
.masthead-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gs { position: relative; flex: 0 1 380px; margin-left: auto; }
.masthead-actions:empty, .masthead-actions:not(:has(:not([hidden]))) { display: none; }
.gs-form { position: relative; margin: 0; }
.gs-form svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: #5b6168; pointer-events: none; }
.gs-form input {
  width: 100%; font: inherit; font-size: .98rem; color: var(--c-text);
  padding: 11px 16px 11px 42px; border: 2px solid transparent; border-radius: 999px; background: #fff;
}
.gs-form input::placeholder { color: #6b7178; }
.gs-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.gs-toggle {
  display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
}
.gs-toggle svg { width: 20px; height: 20px; }
.gs-toggle[aria-expanded="true"] { background: #fff; color: var(--c-band); }

.gs-results {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 45;
  width: min(580px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain;
  background: #fff; color: var(--c-text); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3); padding: 8px;
}
.gs-results ul { list-style: none; margin: 0; padding: 0; }
.gs-count, .gs-empty { margin: 6px 10px 8px; font-size: .86rem; color: var(--c-muted); }
.gs-empty { padding: 10px 0; font-size: .95rem; }
.gs-item {
  display: grid; gap: 2px; padding: 10px 12px 11px 16px; border-radius: 10px;
  text-decoration: none; color: var(--c-text); position: relative;
}
.gs-item::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--accent); }
.gs-item:hover, .gs-item:focus-visible { background: var(--c-soft); }
.gs-item:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gs-where { font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-ink); }
.gs-title { font-weight: 700; line-height: 1.35; }
.gs-snip { font-size: .88rem; color: #4a5057; line-height: 1.45; }
.gs-results mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }

@media (max-width: 860px) {
  .gs-toggle { display: grid; }
  .js .gs { display: none; }
  .js .gs.is-open { display: block; }
  .gs { flex: 1 1 100%; order: 3; margin: 14px 0 4px; }
  .gs-results { position: static; width: 100%; margin-top: 10px; max-height: 65vh; }
}

@media (max-width: 400px) {
  .menu-toggle { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 5. Campanya --------------------------------------------------------------- */
.campaign { padding: clamp(28px, 5vw, 48px) 0 8px; }
.campaign-title { width: min(100%, 640px); }
.campaign-tag {
  margin: 12px 0 0; color: #808080; font-weight: 600; letter-spacing: .06em;
  font-size: clamp(.82rem, 1.6vw, 1rem); text-transform: uppercase;
}

/* 6. Portada ------------------------------------------------------------------ */
.cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  background: var(--c-blue); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .15s, background-color .15s;
}
.cta:hover { background: #245f95; transform: translateY(-1px); }
.cta svg { width: 18px; height: 18px; flex: none; }

.cards {
  display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}
.card { margin: 0; }
.card--wide { grid-column: 1 / -1; }
.card h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--accent-ink); margin-bottom: 12px; }
.card a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; position: relative; }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .2s; }
.card a:hover::after, .card a:focus-visible::after { box-shadow: inset 0 0 0 4px var(--accent); }
.card img { width: 100%; aspect-ratio: 1000 / 634; object-fit: cover; object-position: center; transition: transform .35s ease; }
.card--wide img { aspect-ratio: 1600 / 481; }
.card a:hover img { transform: scale(1.02); }
.card .go {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  background: #fff; color: var(--accent-ink); font-weight: 700; font-size: .92rem;
  padding: 12px 18px; border-top: 4px solid var(--accent);
}
.card a:hover .go { background: var(--accent-soft); }
.card .go svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

/* 7. Pàgines d'apartat ------------------------------------------------------- */
.page {
  display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 80px);
}
.page-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--accent-ink); }
.lead { font-size: 1.12rem; color: #33383e; max-width: 70ch; }
.aside-banner { position: sticky; top: 24px; align-self: start; }
.aside-banner img { width: 100%; max-width: 210px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .aside-banner { position: static; justify-self: center; }
  .aside-banner img { max-width: 175px; }
}

/* Botó «Obre-ho tot / Tanca-ho tot» — només apareix si hi ha JavaScript */
.tools { display: flex; justify-content: flex-end; margin: 24px 0 14px; }
.btn-ghost {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--c-text); border: 1px solid #cfd3d8; border-radius: 999px; padding: 9px 16px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* 8. Serveis desplegables ------------------------------------------------- */
.group-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.3rem; font-weight: 700; margin: 40px 0 14px;
}
.group-title .num {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1rem;
}
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.svc:hover { border-color: #cdd1d6; }
.svc[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.svc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; font-weight: 600; font-size: 1.02rem; border-radius: var(--radius);
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.svc summary .chev { margin-left: auto; flex: none; width: 22px; height: 22px; color: var(--c-muted); transition: transform .2s; }
.svc[open] summary .chev { transform: rotate(180deg); color: var(--accent-ink); }
.svc summary:hover .svc-title { color: var(--accent-ink); }
.svc-body { padding: 0 18px 18px 42px; color: #2b3036; }
.svc-body p:last-child { margin-bottom: 0; }
.svc-body strong, .svc-body b { color: var(--accent-ink); font-weight: 700; }
.svc-body .hl { color: var(--accent-ink); font-weight: 600; }
.svc-body a { word-break: break-word; }
/* Serveis que al web original no tenen descripció: es mostren com a fila sense desplegable */
.svc--plain { display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 600; }
.svc--plain::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.svc[hidden], .svc--plain[hidden], .group-title[hidden] { display: none; }
main mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* 9. Contacte ---------------------------------------------------------------- */
.contact { margin-top: clamp(36px, 5vw, 56px); }
.contact h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: var(--accent-soft); border-radius: var(--radius); height: 100%;
}
.contact-card .ico {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.contact-card .ico svg { width: 20px; height: 20px; fill: currentColor; }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-card p { margin: 0; color: #2b3036; font-size: .98rem; }
.contact-card a { font-weight: 600; }
.contact-photo { margin: clamp(28px, 4vw, 40px) 0 0; }
.contact-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 10. Peu --------------------------------------------------------------------- */
.site-footer { background: var(--c-footer); color: #e6e6e6; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.footer-grid h2 { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.footer-grid h2.f-brand { font-size: 1.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.footer-social a:hover { background: rgba(255, 255, 255, .22); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding: 18px 0 26px; font-size: .85rem; color: #bdbdbd;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* 11. Avís de galetes --------------------------------------------------------
   Criteris (guia de galetes AEPD 2023): no es dona consentiment per seguir navegant;
   "Acceptar" i "Rebutjar" tenen el mateix pes visual; caselles opcionals desmarcades;
   es pot canviar l'elecció des del peu ("Configuració de galetes"). */
.cc {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 820px; margin-inline: auto; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: var(--c-text); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28); border-top: 5px solid var(--c-blue);
}
.cc-inner { padding: 20px 22px 18px; }
.cc-title { font-size: 1.15rem; margin: 0 0 8px; }
.cc-text { font-size: .93rem; margin: 0 0 14px; color: #2b3036; }
.cc-prefs fieldset { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin: 0 0 14px; padding: 6px 14px 4px; }
.cc-prefs legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.cc-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: .9rem; }
.cc-opt + .cc-opt { border-top: 1px solid var(--c-line); }
.cc-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-blue); }
.cc-opt input:disabled + label { color: #3b4047; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  flex: 1 1 180px; padding: 12px 18px; border-radius: 999px;
  background: var(--c-blue); color: #fff; border: 2px solid var(--c-blue);
}
.cc-btn:hover { background: #245f95; border-color: #245f95; }
.cc-btn--ghost { background: #fff; color: var(--c-blue); }
.cc-btn--ghost:hover { background: var(--c-soft); color: #245f95; }
.link-btn {
  font: inherit; color: #fff; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .18em;
}
@media (max-width: 560px) {
  .cc { left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - 16px); }
  .cc-inner { padding: 16px 16px 14px; }
  .cc-text { font-size: .86rem; }
  .cc-btn { flex-basis: 100%; padding: 11px 16px; }
  .svc-body { padding: 0 16px 16px 18px; }
  .svc summary { padding: 14px 16px; }
}

/* Pàgina de política de galetes */
.legal { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); max-width: 860px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-date { color: var(--c-muted); font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.legal th { background: var(--c-soft); }
.cta--btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; margin-top: 0; }

/* 12. Impressió i moviment reduït ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar .social, .main-nav, .menu-toggle, .gs, .gs-toggle, .tools, .cc, .aside-banner, .cta svg { display: none !important; }
  .masthead, .topbar, .site-footer { background: none !important; color: #000 !important; }
  .brand, .site-title a, .site-footer a { color: #000 !important; }
  .brand img { filter: invert(1); }
  .svc { break-inside: avoid; }
  .svc-body { display: block !important; }
}
