/* Rune Nissen – Privatliv & cookies (/privatliv, privatliv/index.html): the privacy policy and the cookie policy on one
   page, in the subpages' light look (the name big, a line beside it, then the text). At the left a list of the parts
   that stays in view as you read (over the text on phones); at the right the parts, numbered, in a column that is
   easy to read. Linked from the fine print of every footer; Cookies goes to #cookies. */
body.pv { background: var(--creme); color: var(--petrol-900); }
:where(.pv) :is(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.pv) :is(ul, ol) { padding: 0; list-style: none; }
.pv .logo { color: var(--petrol-900); }
.pv-main { --pad: clamp(20px, 3.9vw, 56px); padding: 150px var(--pad) 0; }

/* ---------- The name, and the short version beside it ---------- */
.pv-top { display: grid; grid-template-columns: 1fr minmax(260px, 420px); align-items: end; gap: 24px 64px; padding-bottom: 20px; }
.pv-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.6); }
.pv-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(13,26,28,.28); }
.pv-top h1 { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(56px, 9.4vw, 140px); line-height: .8; letter-spacing: .02em; text-transform: uppercase; }
.pv-lede { font-size: 18px; line-height: 1.55; color: rgba(13,26,28,.72); text-wrap: pretty; }

/* ---------- The parts: the list at the left, the text at the right ---------- */
.pv-body { display: grid; grid-template-columns: clamp(210px, 19.5vw, 280px) minmax(0, 700px); gap: clamp(40px, 7vw, 120px); margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(13,26,28,.16); }
.pv-toc { position: sticky; top: 32px; align-self: start; }
.pv-toc p { margin: 18px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.5); }
.pv-toc p:first-child { margin-top: 0; }
.pv-toc ol { display: grid; gap: 6px; }
.pv-toc a { display: inline-flex; gap: 10px; color: inherit; font-size: 15px; line-height: 1.4; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.pv-toc a span { min-width: 1.6em; font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1.85; color: rgba(13,26,28,.45); }

/* A chapter (Privatlivspolitik, Cookies), then its parts, each with its number over its name */
.pv-text { max-width: 700px; }
.pv-chapter { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(40px, 4.6vw, 64px); line-height: .85; letter-spacing: .02em; text-transform: uppercase; scroll-margin-top: 32px; }
.pv-chapter + .pv-part { margin-top: 28px; }
.pv-chapter:not(:first-child) { margin-top: 96px; padding-top: 22px; border-top: 1px solid rgba(13,26,28,.16); }
.pv-part { scroll-margin-top: 32px; }
.pv-part + .pv-part { margin-top: 44px; }
.pv-part h3 { display: flex; flex-direction: column; gap: 8px; font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: 28px; line-height: .9; letter-spacing: .05em; text-transform: uppercase; }
.pv-part h3 span { font-family: 'Jost', system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .2em; line-height: 1; color: rgba(13,26,28,.5); }
.pv-part p, .pv-part li { font-size: 16px; line-height: 1.65; color: rgba(13,26,28,.75); text-wrap: pretty; }
.pv-part p { margin-top: 14px; }
.pv-part ul { display: grid; gap: 8px; margin-top: 14px; }
.pv-part li { position: relative; padding-left: 20px; }
.pv-part li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(13,26,28,.28); }
.pv-part b { font-weight: 500; color: var(--petrol-900); }
.pv-text a { color: var(--petrol-900); text-decoration: underline; text-decoration-color: rgba(13,26,28,.3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.pv-text a:focus-visible, .pv-toc a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.pv-date { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(13,26,28,.12); font-size: 13px; color: rgba(13,26,28,.55); }
@media (hover: hover) {
  .pv-toc a:hover { text-decoration-color: var(--lime); }
  .pv-text a:hover { text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
}

/* Too narrow for the list beside the text: the line under the name, the list over the text */
@media (max-width: 900px) {
  .pv-top { grid-template-columns: minmax(0, 1fr); }
  .pv-top .pv-lede { max-width: 560px; }
  .pv-body { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pv-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .pv-toc p { grid-row: 1; margin-top: 0; }
  .pv-toc ol { grid-row: 2; }
}
@media (max-width: 600px) {
  .pv-main { padding-top: 120px; }
  .pv-lede { font-size: 16px; }
  .pv-body { margin-top: 40px; }
  .pv-toc { grid-template-columns: minmax(0, 1fr); }
  .pv-toc p, .pv-toc ol { grid-row: auto; }
  .pv-toc p + ol + p { margin-top: 22px; }
  .pv-chapter:not(:first-child) { margin-top: 72px; }
  .pv-part h3 { font-size: 24px; }
  .pv-part p, .pv-part li { font-size: 15px; }
}
