/* Can Jeroni · Legal pages · minimal stylesheet */

*{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  color:#1a1a1a;
  background:#ffffff;
  line-height:1.65;
  font-size:15px;
  max-width:640px;
  margin:0 auto;
  padding:2.5rem 1.5rem 4rem;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit}

/* ===== TOP BAR ===== */
.top{
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  margin-bottom:2rem;padding-bottom:.75rem;
  border-bottom:1px solid #e5e5e5;
  font-size:13px;
}
.top .brand{text-decoration:none;color:#1a1a1a;font-weight:500}
.top .brand:hover{text-decoration:underline}
.top nav{display:flex;gap:1rem}
.top nav a{color:#888;text-decoration:none;font-variant-numeric:tabular-nums}
.top nav a:hover{color:#1a1a1a}
.top nav a.active{color:#1a1a1a;font-weight:500}

/* ===== SUBNAV (within a language) ===== */
.subnav{
  display:flex;gap:1.5rem;flex-wrap:wrap;
  padding-bottom:1.5rem;margin-bottom:2.5rem;
  border-bottom:1px solid #e5e5e5;
  font-size:13px;
}
.subnav a{
  color:#888;text-decoration:none;
  padding-bottom:2px;
}
.subnav a:hover{color:#1a1a1a}
.subnav .current{color:#1a1a1a;font-weight:500;border-bottom:1px solid #1a1a1a}

/* ===== HEADINGS ===== */
h1{
  font-size:1.55rem;font-weight:500;letter-spacing:-.01em;
  color:#000;margin-bottom:.35rem;line-height:1.25;
}
.updated{color:#888;font-size:13px;margin-bottom:2.5rem}

/* ===== CONTENT ===== */
section{margin-top:2rem}
section:first-of-type{margin-top:0}
h2{
  font-size:1.05rem;font-weight:600;color:#000;
  margin:2.5rem 0 .75rem;letter-spacing:-.005em;
}
h2:first-child{margin-top:0}
h3{
  font-size:.95rem;font-weight:600;color:#000;
  margin:1.75rem 0 .5rem;
}

p{margin-bottom:1rem;color:#333}
p + p{margin-top:0}

a.ext, p a, li a{
  color:#1a1a1a;text-decoration:underline;
  text-decoration-color:#bbb;text-underline-offset:3px;
  text-decoration-thickness:1px;
}
p a:hover, li a:hover{text-decoration-color:#1a1a1a}

strong{font-weight:600;color:#000}
em{font-style:italic}
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em;color:#1a1a1a;
  background:#f5f5f5;padding:1px 5px;border-radius:2px;
}

/* ===== LISTS ===== */
ul,ol{margin:.5rem 0 1rem 1.5rem;color:#333}
li{margin-bottom:.3rem;padding-left:.15rem}

/* ===== IDENTITY BLOCK ===== */
.identity{
  margin:1rem 0 1.5rem;
  padding:1rem 0;
  border-top:1px solid #e5e5e5;
  border-bottom:1px solid #e5e5e5;
  font-size:14px;
  color:#333;
}
.identity strong{display:block;margin-bottom:.25rem;color:#000}

/* ===== KV BLOCKS (Finalitat/Legitimació/Conservació) ===== */
.kv{margin:.5rem 0 1rem}
.kv p{margin-bottom:.3rem}
.kv p.label{color:#888;font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin-top:.75rem}

/* ===== FOOTER ===== */
footer{
  margin-top:4rem;padding-top:1.25rem;
  border-top:1px solid #e5e5e5;
  font-size:13px;color:#888;line-height:1.7;
}
footer a{color:#666;text-decoration:none}
footer a:hover{color:#1a1a1a;text-decoration:underline}
footer .line{margin-bottom:.15rem}

/* ===== RESPONSIVE ===== */
@media(max-width:560px){
  body{padding:2rem 1.25rem 3rem;font-size:14.5px}
  h1{font-size:1.4rem}
  .subnav{gap:1rem;font-size:12.5px}
}

/* ===== PRINT ===== */
@media print{
  body{max-width:none;padding:0;color:#000}
  .top nav,.subnav{display:none}
  .top{border-bottom-color:#000}
  a{color:#000;text-decoration:none}
  footer{border-top-color:#000}
}
