/* ─────────────────────────────────────────────────────────────
   legal.css — delt oppsett for personvern, vilkår og support.
   Bygger på tokens fra style.css. Lastes etter style.css.
   ───────────────────────────────────────────────────────────── */

.legal-hero {
  position: relative;
  z-index: 1;
  padding: 160px 32px 80px;
  max-width: 740px;
  margin: 0 auto;
}
.legal-hero .eyebrow { margin-bottom: 24px; color: var(--coral-ink); }
.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.legal-hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}
.legal-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legal-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.legal-meta-value {
  font-size: 13px;
  color: var(--muted);
}

.legal-body {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

/* Innholdsfortegnelse */
.legal-toc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 64px;
}
.legal-toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
  padding: 0;
}
.legal-toc li {
  counter-increment: toc;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--coral-ink);
  opacity: 0.7;
  flex-shrink: 0;
}
.legal-toc a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--coral-ink); }

/* Seksjoner */
.legal-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.legal-section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink);
  opacity: 0.7;
  margin-bottom: 10px;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.legal-section p, .legal-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-section li { margin-bottom: 8px; }
.legal-section strong { color: var(--ink); font-weight: 700; }
.legal-section a {
  color: var(--coral-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,95,78,0.3);
  transition: border-color 0.2s;
}
.legal-section a:hover { border-color: var(--coral-ink); }

.legal-callout {
  background: rgba(255,95,78,0.06);
  border: 1px solid rgba(255,95,78,0.2);
  border-left: 3px solid var(--coral);
  border-radius: 3px 12px 12px 3px;
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-callout p {
  margin: 0;
  color: var(--ink) !important;
  font-weight: 600 !important;
}

/* Prisoversikt (vilkår) */
.legal-plan {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 8px 28px;
  margin: 24px 0;
}
.legal-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
}
.legal-plan-row + .legal-plan-row { border-top: 1px solid var(--rule); }
.legal-plan-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.legal-plan-price {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

/* Spørsmål og svar (support) */
.legal-faq {
  border-top: 1px solid var(--rule);
}
.legal-faq details {
  border-bottom: 1px solid var(--rule);
}
.legal-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}
.legal-faq summary:hover { color: var(--coral-ink); }
.legal-faq summary::-webkit-details-marker { display: none; }
.legal-faq summary::after {
  content: "+";
  color: var(--coral-ink);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.legal-faq details[open] summary::after { content: "\2212"; }
.legal-faq details p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
  padding-right: 38px;
}
.legal-faq details a {
  color: var(--coral-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,95,78,0.3);
  transition: border-color 0.2s;
}
.legal-faq details a:hover { border-color: var(--coral-ink); }

/* Kontaktkort */
.legal-contact {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin-top: 80px;
}
.legal-contact h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 14px;
}
.legal-contact p {
  font-size: 15px;
  color: rgba(243,239,230,0.55);
  margin-bottom: 28px;
  line-height: 1.7;
}
.legal-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(255,95,78,0.35);
  border: none;
}
.legal-contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,95,78,0.45);
}

@media (max-width: 600px) {
  .legal-hero { padding: 120px 24px 60px; }
  .legal-body { padding: 0 24px 80px; }
  .legal-contact { padding: 36px 24px; }
  .legal-toc { padding: 24px; }
  .legal-plan { padding: 4px 20px; }
}
