/* ============ The legal pages: the subpages' deep top, then a calm text set for reading ============
   Loaded before rytme.css and ny-under.css, so the top (.u-top, .u-spor, .u-top__g) and the type come from the
   subpage frame; this sheet only sets the facts in the top, the index and the text. */

/* ---------- The top: short, so reading starts at once ---------- */
.j-top{padding-bottom:clamp(36px,3.6vw,56px)}
.j-top h1{max-width:12em}
/* The facts: when it was last changed first, then who and where to write, as the product pages' fact row */
.jura__kort{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px var(--sp);margin-top:clamp(32px,3.6vw,52px);padding-top:18px;border-top:1px solid rgba(255,255,255,.14);font-size:15px;line-height:1.4}
.jura__kort>div{min-width:0}
.jura__kort dt{font-size:13.5px;font-weight:500;color:rgba(255,255,255,.6)}
.jura__kort dd{margin-top:4px;color:#fff;overflow-wrap:anywhere}
.jura__kort a{color:#fff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:rgba(255,255,255,.45)}
.jura__kort a:hover{text-decoration-color:#fff}
.jura__kort .j-dato dt{color:var(--sol)}
.jura__kort .j-dato dd{font-weight:600}
@media (max-width:999px){.jura__kort{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:999px){.jura__kort{gap:14px 20px;font-size:14.5px}}
@media (max-width:340px){.jura__kort{grid-template-columns:minmax(0,1fr)}}
/* Cookies: what this browser holds right now */
.c-nu{margin-top:clamp(20px,2vw,28px);max-width:34em;font-size:var(--t-ingress);line-height:1.5;color:#fff;text-wrap:pretty}

/* ---------- Index and text ---------- */
.jura{padding:clamp(40px,4.4vw,72px) 0 var(--luft);background:#fff}
.jura__gitter{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--sp);align-items:start}
.jura__tekst{grid-column:5/span 8;max-width:40em}

/* The index: numbered as the steps on the product pages, the section in view marked in Kobolt */
.jura__indeks{grid-column:1/span 3;position:sticky;top:28px}
.j-ix>summary{list-style:none}
.j-ix>summary::-webkit-details-marker{display:none}
.j-ix__navn{display:block;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--daempet)}
.j-ix__nu{display:none}
.j-ix ol{list-style:none;counter-reset:j;margin-top:12px;border-left:1px solid var(--linje)}
.j-ix li{counter-increment:j}
.j-ix a{display:grid;grid-template-columns:2.1em minmax(0,1fr);padding:7px 0 7px 14px;margin-left:-1px;border-left:2px solid transparent;font-size:14.5px;line-height:1.35;color:var(--daempet);transition:color .2s,border-color .2s}
.j-ix a::before{content:counter(j,decimal-leading-zero);font-size:12.5px;font-weight:600;line-height:1.6;color:rgba(90,100,133,.7);font-variant-numeric:tabular-nums}
.j-ix a:hover{color:var(--nat)}
.j-ix a[aria-current=true]{color:var(--nat);border-left-color:var(--kobolt)}
.j-ix a[aria-current=true]::before{color:var(--kobolt-dyb)}
@media (min-width:1000px){
  /* Always open beside the text; the summary is only its label */
  .j-ix::details-content{content-visibility:visible;block-size:auto}
  .j-ix>summary{pointer-events:none}
}

/* The text */
.tekst h2{font-size:clamp(23px,2vw,30px);font-weight:500;line-height:1.15;letter-spacing:-.024em;margin:64px 0 16px;scroll-margin-top:24px}
.tekst>h2:first-child,.tekst>section:first-child>h2{margin-top:0}
.tekst h3{font-size:var(--t-h3);font-weight:600;letter-spacing:-.016em;margin:36px 0 10px;scroll-margin-top:24px}
.tekst p,.tekst li{font-size:clamp(16.5px,1.15vw,17.5px);line-height:1.65;color:#2E3757;text-wrap:pretty}
.tekst p+p,.tekst ul+p,.tekst ol+p,.tekst table+p,.tekst p+table{margin-top:16px}
.tekst ul,.tekst ol{margin:16px 0 0 1.2em}
.tekst li+li{margin-top:8px}
.tekst li::marker{color:var(--daempet)}
.tekst a{color:var(--kobolt-dyb);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:rgba(36,73,214,.4);overflow-wrap:anywhere}
.tekst a:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
.tekst code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;padding:.12em .36em;border-radius:5px;background:var(--is);color:var(--nat);white-space:nowrap}
.tekst code.scope{white-space:normal;overflow-wrap:anywhere}
.tekst strong{font-weight:600;color:var(--nat)}
.tekst blockquote{margin:24px 0;padding:16px 20px;border-radius:var(--nf-r);background:var(--is)}
.tekst blockquote p{font-size:18px;line-height:1.5;color:var(--nat)}
.tekst .knap{margin-top:8px}
.tekst .knap--rolig{text-decoration:none}
.tekst details{border-top:1px solid var(--linje)}
.tekst details:last-of-type{border-bottom:1px solid var(--linje)}

/* ---------- Tables: one row per item; stacked with labels on a phone ---------- */
.c-tabel{width:100%;margin-top:20px;border-collapse:collapse;font-size:15px;line-height:1.45}
.c-tabel caption{text-align:left;font-size:14px;color:var(--daempet);padding-bottom:10px}
.c-tabel th,.c-tabel td{text-align:left;vertical-align:top;padding:12px 16px 12px 0;border-top:1px solid var(--linje)}
.c-tabel thead th{font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--daempet);border-top:0;padding-top:0}
.c-tabel tbody th{font-weight:600;color:var(--nat)}
.c-tabel td{color:#2E3757}
.c-tabel tbody tr:last-child>*{border-bottom:1px solid var(--linje)}
@media (min-width:1000px){.jura__tekst .c-tabel{width:calc(100% + (100% + var(--sp)) / 8)}}
@media (max-width:640px){
  .c-tabel thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .c-tabel,.c-tabel tbody,.c-tabel tr,.c-tabel th,.c-tabel td{display:block}
  .c-tabel tr{padding:14px 0;border-top:1px solid var(--linje)}
  .c-tabel tbody tr:last-child{border-bottom:1px solid var(--linje)}
  .c-tabel th,.c-tabel td,.c-tabel tbody tr:last-child>*{border:0;padding:2px 0}
  .c-tabel tbody th{margin-bottom:4px;font-size:16px}
  .c-tabel td{padding:3px 0}
  .c-tabel td::before{content:attr(data-felt) ": ";color:var(--daempet)}
}

/* ---------- Phones and tablets: the index is a bar that stays at the top and opens the list ---------- */
@media (max-width:999px){
  .jura{padding-top:0}
  .jura__gitter{display:block}
  .jura__tekst{max-width:none}
  .jura__indeks{position:static;margin:0 calc(-1 * var(--kant)) 36px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--linje)}
  .js .jura__indeks{position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .j-ix>summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px var(--kant);cursor:pointer}
  .j-ix>summary::after{content:"";flex:none;width:8px;height:8px;margin:-4px 2px 0 auto;border-right:1.75px solid var(--nat);border-bottom:1.75px solid var(--nat);rotate:45deg;transition:rotate .25s var(--ud),margin .25s var(--ud)}
  .j-ix[open]>summary::after{rotate:-135deg;margin-top:4px}
  .j-ix__t{display:grid;min-width:0;gap:1px}
  .j-ix__navn{font-size:15.5px;color:var(--nat)}
  .js .j-ix__t:has(.j-ix__nu:not(:empty)) .j-ix__navn{font-size:12.5px;color:var(--daempet)}
  .js .j-ix__nu:not(:empty){display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15.5px;font-weight:600;color:var(--nat)}
  .j-ix ol{margin:0;padding:4px var(--kant) 14px;border-left:0;max-height:calc(100dvh - 72px);overflow:auto;overscroll-behavior:contain}
  .j-ix li+li{border-top:1px solid var(--linje)}
  .j-ix a{padding:12px 0;margin:0;border-left:0;font-size:16px;color:var(--nat)}
  .j-ix a[aria-current=true]{color:var(--kobolt-dyb)}
  .tekst h2,.tekst h3{scroll-margin-top:var(--top-h)}
  .tekst h2{margin-top:52px}
}
@media (max-width:999px){.j-ix[open]{box-shadow:0 24px 40px -24px rgba(13,23,54,.3)}}
