/* Shared layout for /integritet and /villkor. Stays in sync with the
   landing page palette so the chrome (nav + footer) renders identically. */

:root {
  --bg: #F3F1EE;
  --paper: #FDFCFA;
  --ink: #0F1D2D;
  --ink-soft: #2a3a4d;
  --muted: #6e7d8a;
  --line: #d8dde4;
  --line-strong: #aab4be;
  --teal: #2E7D6B;
  --teal-deep: #1f5a4d;
  --terra: #FF6B4A;
  --mist: #BFD3D9;
  --serif: "Cormorant Garamond", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Nav — sticky Midnight Navy header mirroring the landing page. */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 29, 45, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lp-brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.lp-nav-cta { display: flex; gap: 8px; align-items: center; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.lp-btn-primary {
  background: var(--terra);
  color: #fff;
}
.lp-btn-primary:hover { background: #d9482a; color: #fff; }
.lp-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* The document */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.legal h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Small italicised note used inside legal sections to flag commercial
   relationships (affiliate partnerships, monetization disclosures). */
.legal-note {
  margin: 12px 0 0;
  padding: 12px 16px;
  background: var(--paper);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.legal-lead {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.legal-updated {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal section {
  margin-bottom: 36px;
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.legal p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.legal ul {
  margin: 0 0 12px;
  padding: 0 0 0 22px;
  color: var(--ink-soft);
}

.legal li { margin-bottom: 6px; }

.legal code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

/* Decorative scene above the footer */
.lp-footer-scene {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  background: var(--ink);
  line-height: 0;
}

/* Footer — mirror of landing */
.lp-foot {
  background: var(--ink);
  color: var(--mist);
  padding: 0;
}
.lp-foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.lp-foot a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.lp-foot a:hover { color: #fff; }
.lp-foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.lp-foot-brand img { height: 28px; width: auto; border-radius: 0; display: block; }
.lp-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
/* Mirrors the landing footer: copyright + operator info stacked on
   the right side, operator line dimmed as secondary info. Required
   for transparency now that RouteRover is operated by a legal
   entity (AB). */
.lp-foot-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lp-foot-operator { font-size: 0.78rem; opacity: 0.7; }
@media (max-width: 720px) {
  .lp-foot-copy { align-items: flex-start; }
}

@media (max-width: 480px) {
  .lp-nav-inner { padding: 12px 16px; }
  .lp-nav-cta .lp-btn-ghost { display: none; }
  .legal { padding: 40px 20px 64px; }
}
