/* Public info pages (node). */

.info-node-page {
  padding-top: 74px;
  box-sizing: border-box;
  font-family: "proxima-nova", sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 60px;
  color: #444;
  line-height: 1.65;
}
.info-node-page *, .info-node-page *::before, .info-node-page *::after { box-sizing: border-box; }

.info-hero { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.info-hero-avatar { width: 62px; height: 62px; flex-shrink: 0; }
.info-hero-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 100;
  color: var(--text-strong, #3d342a);
  margin: 0;
}

.info-node-page h2 { font-size: 20px; color: #333; margin: 26px 0 10px; }
.info-node-page h3 { font-size: 16.5px; color: #333; margin: 18px 0 8px; }
.info-node-page p { margin: 0 0 12px; font-size: 15px; }
.info-node-page ul, .info-node-page ol { margin: 6px 0 14px; padding-left: 22px; }
.info-node-page li { margin-bottom: 5px; font-size: 15px; }
.info-node-page a { color: #d8a027; }
.info-node-page a:hover { color: #b8860b; }

.info-summary {
  background: #fef9ee;
  border: 1px solid #f3e3bd;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.info-summary h2 { margin-top: 0; }

.info-node-page section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 18px 22px;
  margin: 16px 0;
}
.info-node-page section h2:first-child { margin-top: 0; }

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 10px 0;
}
.info-card {
  background: #faf7f2;
  border: 1px solid #eee5d8;
  border-radius: 12px;
  padding: 14px 16px;
}
.info-card h3 { margin-top: 0; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.info-table th, .info-table td { border: 1px solid #e0dbd4; padding: 8px 10px; text-align: left; }
.info-table th { background: #faf7f2; }

/* Long-form legal pages: sub-headings, dividers, footer note */
.info-node-page h4 { font-size: 15.5px; color: #333; margin: 16px 0 7px; font-weight: 700; }
.info-node-page hr { border: 0; border-top: 1px solid #ece5da; margin: 22px 0; }
.info-node-page .info-group { text-align: center; color: #8a7f6f; font-weight: 600; margin: 24px 0 10px; }
.info-node-page .info-updated { margin-top: 22px; font-size: 13px; color: #8a7f6f; }
.info-node-page .info-back { font-size: 14px; margin-bottom: 8px; }

/* Provider transfer-basis badges (org-privacy) */
.info-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; margin: 0 2px 2px 0; white-space: nowrap; }
.info-badge--dpf { background: #e6f0ff; color: #1c4e80; }
.info-badge--scc { background: #eee9fb; color: #5b3f9e; }
.info-badge--eu  { background: #e7f6ec; color: #1b7a3d; }
/* Listed on the subprocessor list, but no feature currently routes to it. */
.info-badge--hvilende { background: #f2ede4; color: #7a6a55; }

/* Security grid (org-privacy) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.info-grid-item { background: #faf7f2; border: 1px solid #eee5d8; border-radius: 12px; padding: 12px 14px; }
.info-grid-item strong { display: block; margin-bottom: 4px; color: var(--text-strong, #3d342a); }
.info-grid-item p { margin: 0; font-size: 14px; }

/* Highlight / contact box (reuse the summary look) */
.info-box { background: #fef9ee; border: 1px solid #f3e3bd; border-radius: 12px; padding: 14px 18px; margin: 12px 0; }
.info-box h3:first-child { margin-top: 0; }

/* What is AI: responsive video, language buttons, collapsible transcript */
.info-video { position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden; margin: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.info-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-langbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.info-langbtn { border: 1px solid #e0d5c5; background: #fff; color: #6d5f4a; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.info-langbtn.active { background: linear-gradient(135deg, #fbc24b, #f5a623); color: #fff; border-color: transparent; }
.info-subtitle { margin: 8px 0; font-size: 14px; }
.info-subtitle select { margin-left: 8px; padding: 6px 10px; border: 1px solid #e0d5c5; border-radius: 8px; }
.info-transcript-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: #faf7f2; border: 1px solid #eee5d8; border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--text-default, #4a4540); cursor: pointer; }
.info-transcript-toggle .arrow-icon { transition: transform 0.2s ease; flex-shrink: 0; }
.info-transcript-toggle.active .arrow-icon { transform: rotate(180deg); }
.info-transcript { display: none; padding: 6px 2px 0; }
.info-transcript.show { display: block; }

/* ─────────────────────────────────────────────────────────────
   Anskaffelses- og personvernsider (/documents, /sub-processors,
   /ai-transparency, /exit-and-deletion)
   ───────────────────────────────────────────────────────────── */

/* Handlingslenke — «Be om dokumentpakken →» */
.info-cta {
  display: inline-block;
  margin: 12px 0 4px;
  padding: 10px 18px;
  background: #e8b34a;
  color: #3d2f14;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #d9a136;
}
.info-cta:hover, .info-cta:focus-visible { background: #f0c268; }

/* Underdatabehandlertabellen har fem kolonner. På telefon får seksjonen
   sidescroll i stedet for at hele siden gjør det. */
@media (max-width: 700px) {
  .info-node-page section { overflow-x: auto; }
  .info-table { font-size: 13px; }
  .info-table th, .info-table td { padding: 6px 8px; }
}

/* Utskrift. Et personvernombud skriver disse sidene til PDF og legger dem i
   saken sin — da skal navigasjon, bunntekst og tilbakemeldingsknapp ikke være
   med, og lenkeadressene skal være synlige siden papir ikke kan klikkes. */
@media print {
  .nav-new__container,
  .nav-new-mobile__container,
  .site-footer-slim,
  .info-back,
  .info-hero-avatar,
  .info-cta,
  .fbp,
  .ui-lang-toggle {
    display: none !important;
  }
  .info-node-page { max-width: none; margin: 0; padding: 0; }
  .info-node-page section { overflow-x: visible; break-inside: auto; }
  .info-table { font-size: 10pt; page-break-inside: auto; }
  .info-table tr { page-break-inside: avoid; }
  .info-table th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .info-box, .info-summary { border: 1px solid #999; background: none !important; }
  h1, h2, h3 { page-break-after: avoid; }
  a[href^="http"]::after,
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* PDF-nedlasting ved siden av tilbake-lenken */
.info-back { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.info-pdf { font-weight: 600; }
.info-pdf i { margin-right: 5px; }
.info-pdf-inline { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Språkvelger for deltakerinformasjonen */
.info-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.info-lang {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 13px; border: 1px solid #e0dbd4;
  border-radius: 999px; background: #fff; text-decoration: none;
  font-size: 14px; color: #5a4a33;
}
.info-lang-no { font-size: 12px; color: #8a7b63; }
.info-lang.is-active .info-lang-no { color: #6b5320; }
.info-lang:hover, .info-lang:focus-visible { border-color: #e8b34a; background: #fffaf0; }
.info-lang.is-active { background: #e8b34a; border-color: #d9a136; color: #3d2f14; font-weight: 600; }
/* Selve dokumentet — rammet inn så det er tydelig hvor teksten begynner og slutter */
.notice-doc { background: #fff; border: 1px solid #e0dbd4; border-radius: 12px; padding: 18px 22px; }
.notice-doc[dir="rtl"] { text-align: right; }
.notice-doc[dir="rtl"] ul { padding-right: 20px; padding-left: 0; }
@media print { .notice-doc { border: 0; padding: 0; } }

/* Databehandleravtalen — juridisk dokument, tettere og med signaturfelter */
.legal-doc h2 { margin-top: 26px; }
.legal-doc h4 { margin: 16px 0 4px; font-size: 15px; }
.legal-doc blockquote {
  margin: 10px 0; padding: 10px 14px; border-left: 3px solid #e8b34a;
  background: #fffaf0; border-radius: 0 8px 8px 0;
}
.legal-doc blockquote p { margin: 0; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 14px; }
.sig-block { border: 1px solid #e0dbd4; border-radius: 10px; padding: 12px 16px; }
.sig-line { display: block; border-bottom: 1px solid #9a8f7d; height: 22px; margin-top: 2px; }
@media print {
  .sig-grid { page-break-inside: avoid; }
  .sig-block { border-color: #666; }
}
