/* Estils compartits per les pàgines legals */
:root {
  --bg: #F1EBDF;
  --bg-alt: #E6DFD0;
  --ink: #2A2D24;
  --ink-soft: #4A4D44;
  --muted: #7A7D74;
  --accent: #6B7355;
  --line: rgba(42, 45, 36, 0.12);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Mai trencar paraules amb guions */
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.legal-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,235,223,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.legal-nav-inner {
  max-width: 920px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.legal-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.legal-brand .dot { color: var(--accent); }
.legal-actions { display: flex; align-items: center; gap: 14px; }
.legal-back {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-back:hover { color: var(--accent); }
.lang-switch {
  display: flex; gap: 2px;
  background: var(--bg-alt);
  border-radius: 100px;
  padding: 4px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
}
.lang-switch button {
  padding: 5px 11px;
  background: transparent; border: none;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 500; letter-spacing: 0.05em;
  transition: all .2s ease;
}
.lang-switch button.active { background: var(--ink); color: var(--bg); }

main.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 28px 100px;
}
.legal .eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}
.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 42px;
}
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 14px;
  color: var(--ink);
}
.legal h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
.legal ul, .legal ol {
  margin: 0 0 16px 20px;
  color: var(--ink-soft);
}
.legal li { margin-bottom: 8px; }
.legal .box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.legal .box strong { color: var(--ink); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.93rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.legal th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--accent); }
.legal-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
[data-lang-block="es"] { display: none; }
html[lang="es"] [data-lang-block="ca"] { display: none; }
html[lang="es"] [data-lang-block="es"] { display: block; }
