/*
 * Legal and help pages on opstillingen.dk (privacy.html, terms.html, data-import.html, kontakt.html).
 *
 * They use the marketing site's design (om.opstillingen.dk) rather than the app's, so they read
 * as one site with the pages that link to them. The marketing site deploys separately and is
 * kept out of this deploy (.vercelignore), so the tokens below are a COPY of
 * om-opstillingen: site/styles/tokens.css — change both together. Component reference:
 * om-opstillingen: site/styleguide.html (section "Juridiske sider").
 */

/* ── Tokens (copied from om-opstillingen: site/styles/tokens.css) ── */
:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Noto Serif', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --text-hero: 72px;
  --text-card-title: 19.2px;
  --text-body: 18px;
  --text-ui: 16px;
  --text-small: 14px;
  --text-eyebrow: 12px;

  --ink: #0f0f0f;
  --paper: #f7f7f5;
  --white: #ffffff;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.10);
  --hero-gradient: linear-gradient(90deg, #000 0%, #1a1a1a 25%, #343434 50%, #4d4d4d 75%, #676767 100%);

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 20px;
  --space-5: 24px;
  --space-7: 50px;
  --space-8: 100px;
  --space-6: 30px;
  --gap-icon: 10px;

  --gutter: 50px;
  --width-text: 600px;
  --width-narrow: 800px;
  --width-max: 1440px;
}
@media (max-width: 799px) {
  :root { --gutter: 20px; }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  letter-spacing: -0.0018em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, p, li { overflow-wrap: break-word; }

/* ── Top bar (same as the marketing site) ── */
.topbar,
.page {
  width: 100%;
  max-width: calc(var(--width-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-7);
}
.topbar-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.topbar-wordmark img { width: 30px; height: 30px; }
.topbar-link {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.topbar-link:hover { text-decoration: underline; }

/* ── Page ── */
.page { padding-block: var(--space-8) var(--space-7); }
.page-subtitle {
  margin: 0 0 var(--gap-icon);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
}
.page-title {
  max-width: var(--width-narrow);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.05em;
  hyphens: auto;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-title + .page-subtitle { margin: var(--space-4) 0 0; }

/* ── Prose: 600px column, Sora section headings, serif text ── */
.prose { max-width: var(--width-text); margin-top: var(--space-7); }
.prose section + section { margin-top: var(--space-7); }
.prose h2 {
  margin: 0 0 var(--gap-icon);
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prose p { margin: 0; }
.prose p + p,
.prose ul + p,
.prose p + .callout { margin-top: 0.8em; }
.prose ul { margin: 0.4em 0 0; padding-left: 27px; }
.prose li + li { margin-top: 2px; }

/* Callout: same mint panel as the marketing site's .callout */
.callout {
  padding: var(--gap-icon) var(--space-4);
  border-radius: 0 3px 3px 0;
  background: rgba(92, 193, 149, 0.1);
}

/* ── Footer: COPY of the marketing site footer (om-opstillingen: site/styles/site.css § Footer) ── */
.container {
  width: 100%;
  max-width: calc(var(--width-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo img { width: 30px; height: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font: 600 16px/normal var(--font-ui);
  text-decoration: none;
}
.btn:hover { opacity: .85; }
.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-8) var(--space-7);
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: var(--text-small);
  line-height: 1.5;
  letter-spacing: normal;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
}
.footer-brand p { max-width: 280px; margin: var(--space-3) 0 var(--space-4); color: var(--muted); }
.footer-heading {
  margin: 6px 0 var(--space-3);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: var(--space-2); }
.site-footer a:not(.btn):not(.logo) { text-decoration: none; }
.site-footer a:not(.btn):not(.logo):hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-7);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-bottom p { margin: 0; }

@media (max-width: 799px) {
  .topbar { padding-top: var(--space-4); }
  .page { padding-top: var(--space-7); }
  .page-title { font-size: 36px; line-height: 1.3; letter-spacing: -0.02em; }
  .site-footer { margin-top: var(--space-7); padding-top: var(--space-7); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { margin-top: var(--space-7); }
}
