/* Budli legal pages — design system tokens mirrored from src/theme/*
   colors.ts · typography.ts · spacing.ts */
:root {
  --cream: #FDF6ED;        /* background */
  --bg-soft: #FFFDF5;
  --surface: #FFFDF8;      /* raised card surface */
  --clay: #FD977D;         /* brand primary */
  --clay-ink: #B45234;     /* AA-safe clay text on cream */
  --ink: #513E31;          /* primary text */
  --secondary: #6B6B6B;
  --muted: #9B9B9B;
  --border: #E9DEC8;
  --sand: #EACCAC;
  --sage: #ACCA99;
  --sage-ink: #5C7A49;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 1px 4px rgba(81, 62, 49, 0.05);
  --shadow-card: 0 4px 16px rgba(81, 62, 49, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Status gradient accent — mirrors theme statusGradient */
.topbar {
  height: 6px;
  background: linear-gradient(90deg, #FF8F7A, #FFB87A, #FFD68A, #D6DC8A, #8DBE7A);
}

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(253, 151, 125, 0.18);
}
.nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 18px;
}
.nav a:hover { color: var(--clay-ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.subtitle { color: var(--secondary); font-size: 16px; margin: 0 0 18px; }
.updated {
  display: inline-block;
  background: rgba(234, 204, 172, 0.35);
  border: 1px solid var(--border);
  color: #79695A;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--clay);
  line-height: 1.3;
}
h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 8px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }
a { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

/* Reassurance callout (sage tint) */
.callout {
  background: rgba(172, 202, 153, 0.18);
  border: 1px solid rgba(172, 202, 153, 0.5);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.callout p { margin: 0; }
.callout strong { color: var(--sage-ink); }

/* TL;DR box */
.tldr {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 22px 10px;
  margin: 0 0 8px;
}

.legal-note { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.caps { text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.04em; color: var(--secondary); }

/* Impressum (German legal notice) */
.impressum {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 8px;
}
.impressum p { margin: 0 0 4px; }

/* Buttons (white-on-clay brand CTA) */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.btn {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
}
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn:hover { filter: brightness(1.02); }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--secondary); text-decoration: none; font-weight: 600; margin: 0 8px; }
.site-footer a:hover { color: var(--clay-ink); }
.site-footer .copy { margin-top: 10px; }

@media (max-width: 640px) {
  .card { padding: 26px 22px; }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  .wrap { padding: 20px 14px 44px; }
}
