/* ============================================================
   NECSIAM — Legal pages
   Lightweight stylesheet for avís legal, privacitat, cookies, termes
   ============================================================ */

:root {
  --navy: #1E2247;
  --ink:  #0B0E24;
  --lime: #CCFF44;
  --paper:#FAFAF7;
  --mist: #EDEEF5;
  --graphite:#4A4F6E;
  --muted:#A0A8C0;
  --line: #E6E6EE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.legal-nav {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: #fff;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.legal-nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo .dot {
  width: 10px; height: 10px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}
.nav-back {
  font-size: 13px;
  color: var(--graphite);
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.nav-back:hover { color: var(--navy); }

/* Language switch (CA/ES) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--navy); background: var(--mist); }
.lang-switch a[aria-current="page"] {
  background: var(--navy);
  color: var(--paper);
}

/* ---- Main ---- */
.legal-main { padding: 56px 0 96px; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphite);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}

h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.05;
  color: var(--navy);
}

.meta {
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 48px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--navy);
}

p { margin-bottom: 14px; color: var(--ink); }
ul, ol { margin: 14px 0 18px 22px; }
li { margin-bottom: 6px; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #000; }

strong { font-weight: 600; }

dl { margin: 14px 0 24px; }
dt { font-weight: 600; color: var(--navy); margin-top: 8px; }
dd { color: var(--ink); margin-left: 0; }

.callout {
  background: var(--mist);
  border-left: 3px solid var(--lime);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 14.5px;
}

/* ---- Footer ---- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--graphite);
}
.legal-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  align-items: center;
}
.legal-footer a { color: var(--graphite); text-decoration: none; }
.legal-footer a:hover { color: var(--navy); }
.legal-footer .links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 19px; }
  body { font-size: 15px; }
  .legal-main { padding: 40px 0 72px; }
}
