/* credbl.ai — secondary pages (Impressum, Datenschutz).
   Same palette, type and nav/footer as the landing page (index.html). */
:root {
  --bg: #EFECE6;
  --ink: #22241F;
  --ink-2: #4A4C45;
  --muted: #6A6C63;
  --sage: #4C6B50;
  --card: #FAF8F4;
  --on-sage: #F7F5F0;
  --line: #E3DFD6;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* nav, as on the landing page */
.nav { position: sticky; top: 12px; z-index: 50; padding: 12px clamp(12px, 3vw, 32px) 0; }
.nav-bar {
  max-width: 1240px; margin: 0 auto; background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px;
  padding: 0 10px 0 20px; height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; box-shadow: 0 1px 0 rgba(34, 36, 31, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 28px; object-fit: contain; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav-cta {
  white-space: nowrap; background: var(--sage); color: var(--on-sage); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 11px 20px; border-radius: 999px;
}
.nav-cta:hover { background: var(--ink); color: var(--on-sage); }

/* the page itself */
.container {
  max-width: 800px; margin: clamp(32px, 5vw, 56px) auto 0; background: var(--card);
  border-radius: 32px; padding: clamp(28px, 5vw, 56px);
}
.back-btn { display: inline-block; margin-bottom: 28px; font-size: 15px; font-weight: 500; text-decoration: none; }
/* back link on the left, the other language on the right */
.page-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lang-switch {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.translation-note { font-size: 14px; color: var(--muted); }
.lang-switch:hover { border-color: var(--sage); color: var(--sage); }
h1 {
  font-weight: 600; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05;
  letter-spacing: -0.035em; margin: 0 0 20px; overflow-wrap: break-word; hyphens: auto;
}
h2 {
  font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em;
  margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line);
}
p, ul { color: var(--ink-2); margin: 0 0 16px; font-size: 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 600; }

/* footer, as on the landing page */
.footer {
  max-width: 1240px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 40px) 40px; display: flex;
  flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.footer > span { font-weight: 600; font-size: 16px; color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .nav-bar { padding: 0 8px 0 14px; height: 56px; }
  .nav-cta { padding: 10px 16px; font-size: 14px; }
  .container { margin: 24px 12px 0; border-radius: 24px; }
  .footer { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; gap: 14px 20px; }
}

/* confirmation pages (verify-*, optout-*): one centred message */
.page-message { min-height: 100vh; display: flex; flex-direction: column; }
.page-message .nav, .page-message .footer { width: 100%; }
.message {
  flex: 1; width: 100%; max-width: 560px; margin: clamp(32px, 8vh, 96px) auto 0;
  padding: 0 clamp(12px, 3vw, 20px);
}
.message-card { background: var(--card); border-radius: 32px; padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 48px); text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: #E2E6DC; color: #3E5A42;
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.badge.bad { background: #F1E1DC; color: #8E2F21; }
.badge.bad::before { background: #B5412F; }
.message h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 14px; hyphens: manual; }
.message p { font-size: 18px; line-height: 1.6; margin-bottom: 32px; }
.btn {
  display: inline-block; white-space: nowrap; border-radius: 999px; font-size: 16px; font-weight: 500;
  padding: 16px 28px; text-decoration: none;
}
.btn-primary { background: var(--sage); color: var(--on-sage); }
.btn-primary:hover { background: var(--ink); color: var(--on-sage); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #E2E6DC; color: var(--ink); }
