/* Legal pages: same look as the landing page (views/landing). */
:root {
  --indigo: oklch(0.52 0.19 268); --indigo-h: oklch(0.45 0.19 268); --navy: oklch(0.2 0.04 268);
  --muted: oklch(0.45 0.03 268); --line: oklch(0.92 0.01 268); --canvas: oklch(0.975 0.006 268); --tint: oklch(0.95 0.03 268);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--navy); font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-h); }
h1, h2, h3 { font-family: 'Schibsted Grotesk', sans-serif; margin: 0; text-wrap: balance; }
.lg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Header */
.lg-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lg-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.lg-brand { display: flex; align-items: center; gap: 10px; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--navy); }
.lg-brand:hover { color: var(--navy); }
.lg-mark { position: relative; width: 22px; height: 22px; display: inline-block; }
.lg-mark::before, .lg-mark::after { content: ''; position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%; }
.lg-mark::before { left: 0; background: var(--indigo); }
.lg-mark::after { right: 0; background: var(--navy); mix-blend-mode: multiply; }
.lg-mark-light::after { background: #fff; opacity: .9; mix-blend-mode: screen; }
.lg-brand-light, .lg-brand-light:hover { color: #fff; }
.lg-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 26px); font-size: 15px; font-weight: 500; flex-wrap: wrap; justify-content: flex-end; }
.lg-nav > a:not(.lg-cta) { color: var(--navy); }
.lg-nav > a:not(.lg-cta):hover { color: var(--indigo); }
.lg-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid oklch(0.9 0.01 268); border-radius: 999px; background: oklch(0.97 0.008 268); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.lg-lang a { padding: 6px 11px; border-radius: 999px; color: var(--muted); }
.lg-lang a.on { background: var(--navy); color: #fff; }
.lg-login { font-weight: 600; }
.lg-cta { background: var(--indigo); color: #fff !important; padding: 11px 18px; border-radius: 8px; font-weight: 600; }
.lg-cta:hover { background: var(--indigo-h); }

/* Hero */
.lg-hero { background: var(--canvas); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.lg-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, oklch(0.52 0.19 268 / 0.10), transparent 70%); }
.lg-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); background: var(--tint); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.lg-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.lg-hero h1 span { color: var(--indigo); }
.lg-meta { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.lg-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; font-style: italic; }

/* Body: side navigation + document */
.lg-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.lg-side { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.lg-side-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lg-toc-title { margin-top: 24px; }
.lg-doc { padding: 9px 12px; border-radius: 9px; color: var(--navy); font-weight: 600; font-size: 15px; }
.lg-doc:hover { background: var(--canvas); color: var(--navy); }
.lg-doc.on { background: var(--navy); color: #fff; }
.lg-toc { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.lg-toc a { padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; }
.lg-toc a:hover { color: var(--navy); }
.lg-toc a.on { border-left-color: var(--indigo); color: var(--navy); font-weight: 600; }
.lg-doc-body { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: oklch(0.3 0.03 268); }
.lg-doc-body > p:first-child { font-size: 19px; line-height: 1.6; color: var(--navy); }
.lg-doc-body h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.025em; color: var(--navy); margin: 44px 0 12px; scroll-margin-top: 96px; }
.lg-doc-body p { margin: 0 0 14px; }
.lg-doc-body ul { padding-left: 20px; margin: 0 0 14px; }
.lg-doc-body li { margin-bottom: 8px; }
.lg-doc-body li::marker { color: var(--indigo); }
.lg-doc-body a { text-decoration: underline; text-underline-offset: 3px; }
.lg-doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; border: 1.5px solid var(--navy); border-radius: 12px; overflow: hidden; box-shadow: 5px 5px 0 var(--navy); }
.lg-doc-body th { text-align: left; background: var(--canvas); color: var(--muted); font-weight: 600; font-size: 13px; padding: 12px 14px; }
.lg-doc-body td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.lg-doc-body code { background: var(--tint); color: var(--indigo-h); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.lg-contact { margin-top: 48px; padding: 22px 24px; border: 1.5px solid var(--navy); border-radius: 14px; box-shadow: 6px 6px 0 var(--navy); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: #fff; }

/* Footer */
.lg-footer { background: var(--navy); color: #fff; padding: 44px 0; }
.lg-footer-in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.lg-footer nav a { color: oklch(0.85 0.02 268); }
.lg-footer nav a:hover { color: #fff; }
.lg-built { font-size: 14px; color: oklch(0.8 0.02 268); }

@media (max-width: 900px) {
  .lg-body { grid-template-columns: 1fr; }
  .lg-side { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .lg-side-title { width: 100%; margin-bottom: 2px; }
  .lg-doc { border: 1px solid var(--line); font-size: 14px; padding: 7px 12px; }
  .lg-toc-title, .lg-toc { display: none !important; }
}
@media (max-width: 640px) {
  .lg-hide-sm, .lg-login { display: none; }
  .lg-cta { padding: 9px 14px; font-size: 14px; }
  .lg-doc-body { font-size: 16px; }
  .lg-doc-body table { display: block; overflow-x: auto; box-shadow: 3px 3px 0 var(--navy); }
}
