/* Shared by every page under /legal/.
   The filename carries a version number on purpose: the deploy uploads
   non-HTML files as immutable with a one-year cache and no fingerprint, so an
   edit to legal.css would never reach a returning visitor. Bump the digit and
   update the six <link> tags whenever this file changes. */

@import url("/assets/fonts/fonts.css");

:root{
  color-scheme: light;
  --yellow:#FFD220;
  --red:#C4211C;
  --ink:#121212;
  --cream:#FFF7E3;
  --white:#FFFFFF;
  --hairline:#12121233;
  --mono:'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
*, *::before, *::after{ box-sizing:border-box; }

body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--sans); font-weight:600; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* Only the chosen language is shown. Both stay in the DOM so that Ctrl-F finds
   either one, and so the markup can carry a correct lang attribute per block. */
html[lang="ca"] [lang="en"],
html[lang="en"] [lang="ca"]{ display:none; }

header{
  background:var(--yellow); border-bottom:3px solid var(--ink);
  padding:16px clamp(18px,5vw,44px);
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
}
.brand{
  font-weight:900; font-size:20px; letter-spacing:-0.03em;
  text-decoration:none; color:var(--ink);
}
.brand span{ color:var(--red); }
.langs{ margin-left:auto; display:flex; border:3px solid var(--ink); border-radius:999px; overflow:hidden; }
.langs a{
  font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.1em;
  padding:7px 13px; text-decoration:none; color:var(--ink); background:var(--cream);
}
.langs a[aria-current="true"]{ background:var(--ink); color:var(--yellow); }

main{ max-width:74ch; margin:0 auto; padding:clamp(28px,6vw,64px) clamp(18px,5vw,44px) 80px; }

.eyebrow{
  font-family:var(--mono); font-size:11px; font-weight:700;
  letter-spacing:.14em; color:var(--red); margin-bottom:10px;
}
h1{ font-size:clamp(30px,6vw,50px); font-weight:900; letter-spacing:-0.035em; line-height:1.05; margin:0 0 6px; }
h2{ font-size:clamp(19px,3.2vw,24px); font-weight:900; letter-spacing:-0.02em; margin:38px 0 10px; }
h3{ font-size:16px; font-weight:800; margin:24px 0 6px; }
p, li{ font-size:15.5px; margin:0 0 12px; }
ul, ol{ padding-left:22px; margin:0 0 12px; }
li{ margin-bottom:6px; }
a{ color:var(--red); }
strong{ font-weight:800; }

.updated{ font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.1em; opacity:.6; }

/* A field the shop owner must fill in before this page is true. Loud on
   purpose: an Impressum with a placeholder in it is worse than no Impressum. */
.todo{
  background:var(--red); color:#fff; font-family:var(--mono); font-size:12px;
  font-weight:700; padding:1px 7px; border-radius:5px; white-space:nowrap;
}

.box{
  background:var(--white); border:3px solid var(--ink); border-radius:16px;
  padding:clamp(16px,3vw,26px); margin:22px 0;
}
.box h3:first-child{ margin-top:0; }

table{ width:100%; border-collapse:collapse; margin:0 0 16px; font-size:15px; }
th, td{ text-align:left; padding:9px 12px; border-bottom:2px solid var(--hairline); }
th{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

.back{
  display:inline-block; margin-top:34px; background:var(--ink); color:var(--yellow);
  text-decoration:none; font-weight:800; font-size:15px; padding:12px 22px;
  border:3px solid var(--ink); border-radius:999px;
}
.back:hover{ background:var(--red); color:#fff; border-color:var(--red); }

footer{
  border-top:3px solid var(--ink); padding:22px clamp(18px,5vw,44px) 40px;
  display:flex; flex-wrap:wrap; gap:8px 18px;
  font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.08em;
}
footer a{ color:var(--ink); text-decoration:none; }
footer a:hover{ color:var(--red); }
