/* Shared tokens and the legal pages. Direction: the well-kept board, Albert Sans; palette taken from the HeyNoy logo (black, off-white, lime). */
:root {
  --bg: #f4f4ef;
  --surface: #e9eae3;
  --ink: #111210;
  --muted: #55584d;
  --accent: #c5f53f;
  --accent-ink: #111210;
  --run-1: #e3e5dc;
  --run-2: #cfd2c5;
  --run-3: #9ea392;
  --run-4: #2c2f27;
  --field-2: #e6e7e0;
  --field-2-ink: #111210;
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margin: clamp(8px, 1vw, 12px);
  --gap: 8px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-small)/1 var(--font); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.button:hover { color: var(--accent-ink); background: #b3e62c; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

/* Legal pages: one reading column between a plain bar and the legal close. */
.wrap {
  max-width: 1440px; margin: 0 auto;
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
}
header.site {
  padding-inline: 12px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between;
  padding-block: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; }
.wrap main { max-width: 46rem; padding: 64px 12px 120px; }
h1 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0 0 24px; text-wrap: balance; }
h2 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; margin: 48px 0 8px; text-wrap: balance; }
.wrap main p, .wrap main li { max-width: 68ch; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.meta { font-size: var(--step-small); color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 10px; }
footer.legal {
  background: var(--field-2); color: var(--field-2-ink);
  margin-left: calc(-1 * max(var(--margin), env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(var(--margin), env(safe-area-inset-right, 0px)));
  padding: 40px max(var(--margin), env(safe-area-inset-right, 0px)) 48px max(var(--margin), env(safe-area-inset-left, 0px));
  font-size: var(--step-small);
}
footer.legal p { margin: 4px 0; max-width: none; }
footer.legal strong { font-weight: 600; }

/* Language switch: the current language in bold, the other one as a link. */
.lang { display: inline-flex; gap: 14px; align-items: baseline; }
.lang b { font-weight: 600; }
