/* ================================================================
   Nora Signal — vilkar.php + personvern.php (juridiske sider).
   Frittstående offentlige sider i site-roten: fast lys palett =
   husfargene fra index.php / appens Sand-tema (tokens.css). Endres
   paletten der, oppdater denne i takt. Deles av begge sidene —
   markupmønsteret er .jur-topp + .jur-hode + .jur-grid (toc + innhold).
   ================================================================ */

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

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #F2F1ED;
  --border: #E8E6E1;
  --border-light: #F0EEEA;
  --text: #1A1A1A;
  --text-2: #6B6B6B;
  --text-3: #9B9B9B;
  --accent: #2C5F2D;
  --accent-light: #EEF3EE;
  --accent-hover: #234D24;
  --blue: #2D5F8A;
  --maks: 1120px;
  --skygge: 0 1px 2px rgba(26,26,26,.05), 0 8px 24px -12px rgba(26,26,26,.14);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maks); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Topplinje ============ */
.jur-topp {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,245,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.jur-topp-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.merke { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.merke:hover { text-decoration: none; }
.merke .ordmerke span { color: var(--accent); font-weight: 500; }
.logomerke {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600;
}
.jur-topp-lenker { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.jur-topp-lenker a { color: var(--text-2); font-weight: 500; }
.jur-topp-lenker a:hover { color: var(--text); text-decoration: none; }
.jur-topp-lenker .knapp {
  padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500;
}
.jur-topp-lenker .knapp:hover { background: var(--accent-hover); text-decoration: none; }

/* ============ Dokumenthode ============ */
.jur-hode { padding: 52px 0 34px; border-bottom: 1px solid var(--border); background: var(--surface); }
.jur-hode h1 {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 10px;
}
.jur-hode .undertittel { color: var(--text-2); font-size: 16.5px; max-width: 72ch; }
.jur-versjon {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; color: var(--text-2);
  background: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px; padding: 5px 14px;
}
.jur-versjon b { color: var(--accent); font-weight: 600; }

/* ============ Innholdsgrid: klebrig TOC + dokument ============ */
.jur-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding: 40px 0 80px; }
@media (max-width: 1000px) { .jur-grid { grid-template-columns: minmax(0, 1fr); } }

.jur-toc { position: sticky; top: 86px; align-self: start; font-size: 13.5px; }
@media (max-width: 1000px) {
  .jur-toc { position: static; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
}
.jur-toc h2 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 10px; }
.jur-toc ol { list-style: none; display: grid; gap: 6px; }
.jur-toc a { color: var(--text-2); display: block; line-height: 1.4; }
.jur-toc a:hover { color: var(--accent); text-decoration: none; }
.jur-toc .toc-del { margin-top: 12px; font-weight: 600; color: var(--text); }

/* ============ Dokumentet ============ */
.jur-doc { max-width: 76ch; }
.jur-doc section { margin-bottom: 40px; scroll-margin-top: 84px; }
.jur-doc h2 {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; letter-spacing: -.01em;
  font-size: 23px; line-height: 1.25; margin-bottom: 14px; padding-top: 8px;
}
.jur-doc h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.jur-doc h4 { font-size: 14.5px; font-weight: 600; margin: 18px 0 6px; }
.jur-doc p { margin-bottom: 12px; color: var(--text); }
.jur-doc p.dus, .jur-doc li.dus { color: var(--text-2); }
.jur-doc ul, .jur-doc ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 7px; }
.jur-doc li { color: var(--text); }
.jur-doc li::marker { color: var(--accent); }
.jur-del {
  margin: 46px 0 26px; padding-top: 26px; border-top: 2px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--accent);
}

/* «Kort oppsummert»-boksen */
.jur-kort {
  background: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 16px;
}
.jur-kort .etikett {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--accent); margin-bottom: 6px;
}
.jur-kort p { margin-bottom: 8px; }
.jur-kort p:last-child { margin-bottom: 0; }

/* Kontaktkort o.l. */
.jur-info {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin: 14px 0; font-size: 14.5px;
}
.jur-info b { font-weight: 600; }

/* Tabeller — alltid i egen skrollbar wrapper (mobil) */
.jur-tabell { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.jur-tabell table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.jur-tabell th {
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-3); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.jur-tabell td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text); }
.jur-tabell tr:last-child td { border-bottom: none; }
.jur-tabell td:first-child { font-weight: 500; white-space: nowrap; }
@media (max-width: 640px) { .jur-tabell td:first-child { white-space: normal; } }

/* ============ Bunn ============ */
.jur-bunn { border-top: 1px solid var(--border); background: var(--surface); padding: 26px 0 34px; }
.jur-bunn .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.jur-bunn p { font-size: 13px; color: var(--text-3); }
.jur-bunn nav { display: flex; gap: 18px; font-size: 13px; }
