/* Felles stil for gledio.app (forside, personvern, støtte). Farger fra appen (src/components/ui.tsx). */
:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #292335;
  --muted: #7d778a;
  --line: #ece8f1;
  --primary: #7154c8;
  --on-primary: #ffffff;
  --soft: #eee8fa;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18151f;
    --surface: #24202d;
    --text: #f5f1fc;
    --muted: #b8aec9;
    --line: #393241;
    --primary: #b8a0f4;
    --on-primary: #18151f;
    --soft: #352a4b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--primary); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
img, svg { display: block; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Topp */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}
.button.quiet {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* Tekstsider (personvern, støtte) */
.doc { max-width: 40rem; padding-block: 2rem 4rem; }
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}
.doc h2 { font-size: 1.3rem; margin: 2.4rem 0 0.4rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }

.foot {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .copy { margin-right: auto; }
