/* Gedeelde stijl voor de tekstpagina's (privacy, voorwaarden) — aivaardigheid.nl */

/* Zelf-gehoste variabele fonts (Geist, Geist Mono) — geen externe verzoeken */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/geist.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/geist-mono.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --background: #fcfdfa;
  --foreground: #2a1508;
  --accent: #d84315;
  --muted-foreground: #6c4b37;
  --secondary: #f3d8bf;
  --secondary-foreground: #7b531e;
  --border: #e5d8cd;
  --container: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c0a09;
    --foreground: #e8d5bf;
    --accent: #ff7043;
    --muted-foreground: #a8a29e;
    --secondary: #292524;
    --secondary-foreground: #e7e5e4;
    --border: #292524;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
nav a:hover { color: var(--foreground); }

/* Tekstpagina */
.legal { padding-block: 3rem 1rem; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.legal .updated {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}
.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.legal p, .legal li { color: var(--foreground); }
.legal .lead, .legal .muted { color: var(--muted-foreground); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a:not(.brand) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted-foreground) 40%, transparent);
}
.legal a:not(.brand):hover { text-decoration-color: var(--muted-foreground); }
.legal .dl { margin: 0 0 1rem; }
.legal .dl dt { font-weight: 600; margin-top: 0.75rem; }
.legal .dl dd { margin: 0.1rem 0 0; color: var(--muted-foreground); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-block: 2rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-brand strong { color: var(--foreground); font-weight: 600; }
.footer-legal { font-size: 0.78rem; }
.footer-end { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.footer-nav a { color: var(--muted-foreground); text-decoration: none; }
.footer-nav a:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  nav { gap: 1rem; }
  .brand { font-size: 1rem; }
}
