/*
 * Public FogiDesk policy pages.
 *
 * The stylesheet intentionally has no script or external dependency. Legal
 * publication approval belongs to the matching English and Danish documents,
 * which retain an explicit source warning until owner and counsel sign-off.
 */
:root {
  color-scheme: light dark;
  --brand: #0e4a8c;
  --brand-strong: #0a3462;
  --brand-soft: #e5eef9;
  --ink: #0f1522;
  --text: #303a49;
  --muted: #657083;
  --background: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #dfe4eb;
  --focus: #fc636b;
  --shadow: 0 24px 70px -45px rgba(15, 21, 34, 0.45);
  --radius: 16px;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(14, 74, 140, 0.08), transparent 30rem),
    var(--background);
  font: 400 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner,
.page,
.site-footer {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 156px;
  height: auto;
}

.brand-reverse {
  display: none !important;
}

.site-nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav {
  margin-left: auto;
}

.site-nav a,
.language-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a {
  padding: 0 12px;
}

.language-nav {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.language-nav a {
  min-width: 44px;
  justify-content: center;
  padding: 0 8px;
}

.site-nav a:hover,
.language-nav a:hover,
.site-nav a[aria-current="page"],
.language-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.page {
  padding-block: clamp(48px, 8vw, 92px) 80px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 66ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.version {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contents {
  position: sticky;
  top: 24px;
  padding-top: 4px;
}

.contents strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.84rem;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents li + li {
  margin-top: 3px;
}

.contents a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
  text-decoration: none;
}

.contents a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.policy-body {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-section {
  padding: clamp(24px, 5vw, 42px);
}

.policy-section + .policy-section {
  border-top: 1px solid var(--border);
}

.policy-section p {
  max-width: 70ch;
  margin: 0;
}

.policy-section p + p,
.policy-section p + ul,
.policy-section ul + p,
.policy-section .steps + p {
  margin-top: 14px;
}

.policy-section ul,
.policy-section ol:not(.steps) {
  max-width: 70ch;
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.policy-section li + li {
  margin-top: 8px;
}

.callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-card {
  display: grid;
  gap: 6px;
  max-width: 34rem;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  font-style: normal;
}

.contact-card strong {
  color: var(--ink);
}

.contact-card a {
  width: fit-content;
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: policy-step;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding-left: 64px;
  counter-increment: policy-step;
}

.steps li::before {
  content: counter(policy-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 760;
}

.steps strong {
  display: block;
  color: var(--ink);
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.related a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-footer a {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #82b7ee;
    --brand-strong: #b6d7f7;
    --brand-soft: #162d47;
    --ink: #eef3f8;
    --text: #d1dae5;
    --muted: #a9b5c4;
    --background: #0c121b;
    --surface: #121b27;
    --surface-soft: #172332;
    --border: #2d3a49;
    --focus: #ff858b;
    --shadow: 0 28px 80px -50px rgba(0, 0, 0, 0.9);
  }

  body {
    background:
      radial-gradient(circle at 12% -10%, rgba(58, 127, 195, 0.16), transparent 30rem),
      var(--background);
  }

  .brand-primary {
    display: none !important;
  }

  .brand-reverse {
    display: block !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 840px) {
  .header-inner {
    min-height: auto;
    padding-block: 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    white-space: nowrap;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .contents {
    position: static;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .contents ol {
    columns: 2;
    column-gap: 24px;
  }

  .contents li {
    break-inside: avoid;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page,
  .site-footer {
    width: min(calc(100% - 28px), var(--page));
  }

  .brand img {
    width: 138px;
  }

  .language-nav {
    padding-left: 6px;
  }

  .page {
    padding-top: 42px;
  }

  .page-heading {
    margin-bottom: 30px;
  }

  .contents ol {
    columns: 1;
  }

  .policy-section {
    padding: 24px 20px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
  }

  .site-header,
  .contents,
  .site-footer,
  .related {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .content-grid {
    display: block;
  }

  .policy-body {
    border: 0;
    box-shadow: none;
  }

  .policy-section {
    padding-inline: 0;
    break-inside: avoid;
  }
}
