/* Privacy + Terms pages: the same paper, ink and type as the home page,
   without the scroll machinery. Self-contained, so page.css stays untouched. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/geist-mono-500-latin.woff2) format("woff2");
}
/* metric-matched fallback (same as the home page) */
@font-face {
  font-family: "Schibsted Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 103%; ascent-override: 95.1%; descent-override: 25.2%; line-gap-override: 0%;
}

:root {
  --paper: #F3F2EC;
  --bed:   #E8E6DD;
  --card:  #FBFAF6;
  --ink:   #24231F;
  --ink-2: #5A574F;
  --hair:  #BCB9AF;
  --orange: #F04A00;
  --orange-text: #B83600;
  --sans: "Schibsted Grotesk", "Schibsted Fallback", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --inset: 10px;
  --gut: clamp(1.25rem, 5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper) url(/assets/art/grain.webp) repeat; color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
::selection { background: var(--ink); color: var(--paper); }

.paper-grain { display: none; }
.frame { display: none; }

a { color: var(--ink); text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; box-shadow: 0 0 0 4px var(--paper); }

.bar {
  position: relative; z-index: 63;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--inset) + 8px) var(--gut) 0;
}
.mark {
  display: inline-flex; align-items: center; gap: 0.06em; min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  transition: color 200ms ease-out;
}
.mark__glyph { width: 1.08em; height: 1.08em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.mark__hub { stroke: var(--orange); }

.doc {
  position: relative; z-index: 1;
  max-width: 44rem; margin: 0 auto;
  padding: clamp(2.5rem, 9vh, 5.5rem) var(--gut) 3rem;
}
.doc__label, .doc__date {
  margin: 0; font: 500 0.8125rem/1.5 var(--mono);
  letter-spacing: 0.01em; color: var(--ink-2);
}
.doc h1 {
  margin: 0.6rem 0 0.4rem;
  font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em;
}
.doc h2 {
  margin: 2.6rem 0 0.6rem; padding-top: 1.1rem; border-top: 1px solid var(--hair);
  font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em;
}
.doc p, .doc ul { margin: 0 0 1rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.35rem; }

.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin: 0 var(--gut) calc(var(--inset) + 18px);
  padding-top: 16px; border-top: 1px solid var(--hair);
  font: 500 0.8125rem/1.5 var(--mono); letter-spacing: 0.01em; color: var(--ink-2);
}
.foot a { color: inherit; text-decoration: none; display: inline-block; padding: 8px 0; margin: -8px 0; }
.foot a:hover { color: var(--orange-text); }
.foot a[aria-current="page"] { color: var(--ink); }

@media (max-width: 900px) {
  :root { --inset: 6px; --gut: 20px; }
  body { font-size: 1rem; }
  /* 44 px phone tap targets for Privacy and Terms (final polish #10; the legal HTML stays untouched) */
  .foot__legal a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; margin: 0; padding: 0 4px;
  }
}
