/* Stylesheet for the privacy pages: personvern.html (NO) and en/privacy.html (EN).
   Shared by both so the two languages can't drift — same idea as styles.css for
   the landing pages. Served from the root, so the relative fonts/ URLs below
   resolve to /fonts/ for both / and /en/ pages (CSS url() is relative to the
   stylesheet, not the document).
   Externalised from inline <style> so the CSP can drop style-src 'unsafe-inline';
   see docs/explanation/layout-strategy.md. */

/* ── SELF-HOSTED FONTS (no third-party requests; GDPR-safe) ── */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dmserifdisplay-regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dmserifdisplay-regular-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans is a variable font — one file covers weights 400–700 */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/instrumentsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/instrumentsans-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  /* Editorial palette — deep spruce accent, cool ink, warm paper. */
  --accent: #0F6E5C;
  --accent-deep: #0B574A;
  --accent-faint: #E9F3F0;
  --accent-wash: #F3F8F6;
  --ink: #14181C;
  --ink-light: #3F454D;
  --ink-muted: #646B73;
  --white: #FFFFFF;
  --off-white: #FBFBF9;
  --border: #E4E5E1;
}

html { font-size: 16px; }

body {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Visible keyboard focus */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── NAV ── */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo span {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-back {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* Language switcher (NO / EN) */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-lang a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  text-decoration: none;
}
.nav-lang a:hover { color: var(--accent); }
.nav-lang a[aria-current="page"] { color: var(--ink); }
.nav-lang .sep { color: var(--border); font-size: 0.8rem; }

@media (max-width: 480px) {
  .nav-back { display: none; } /* keep just logo + language switch on tiny screens */
}

/* ── DOCUMENT ── */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
}

.doc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.doc-label::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.updated {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-light);
  background: var(--accent-wash);
  border: 1px solid var(--border);
  padding: 1.3rem 1.6rem;
  border-radius: 6px;
  margin-bottom: 3rem;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.8rem;
}

p { margin-bottom: 1rem; color: var(--ink-light); }

ul { margin: 0 0 1.2rem 1.3rem; color: var(--ink-light); }
li { margin-bottom: 0.5rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

strong { color: var(--ink); font-weight: 600; }

.contact-box {
  margin-top: 3rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}
.contact-box h2 { margin-top: 0; }

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
}
footer p { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 0; }
footer a { color: rgba(255,255,255,0.75); text-decoration: underline; }
footer a:hover { color: var(--white); }
footer a:focus-visible { outline-color: var(--accent-deep); }

@media (max-width: 640px) {
  main { padding: 3rem 1.3rem 4rem; }
  .nav-inner { padding: 0 1.3rem; }
}
