/* Legal pages (/impressum, /agb, /datenschutz) — same fonts, colours and
   footer as the landing page; a light reading page, no JavaScript. */

@font-face { font-family: 'Cadiz'; src: url('/logo-fonts/Cadiz-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cadiz'; src: url('/logo-fonts/Cadiz-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/DMSerifDisplay-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    --black: #212121;
    --white: #ffffff;
    --gold: #f0a500;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    /* The footer sits at the bottom even when the text is shorter than the window. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar — the landing page's scrolled navigation, static */
.legal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    border-bottom: 1px solid var(--gray-200);
}
.legal-bar .wordmark { display: inline-flex; align-items: flex-end; gap: 12px; text-decoration: none; }
.legal-bar .wordmark img { height: 13px; width: auto; display: block; }
.legal-bar .wordmark span {
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: rgba(33, 33, 33, 0.55);
    text-transform: uppercase;
    transform: translateY(2px);
}
.legal-bar .back { font-size: 14px; color: var(--gray-600); text-decoration: none; }
.legal-bar .back:hover { color: var(--gold); }

/* Reading column */
.legal {
    flex: 1 0 auto;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.legal h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 32px;
}
.legal h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin: 48px 0 14px;
    scroll-margin-top: 24px;
}
.legal h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 8px;
}
.legal p, .legal li {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--gray-800);
}
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 12px 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--gray-900); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal code {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 13.5px;
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 4px;
}

.legal .toc {
    margin: 0 0 40px;
    padding: 20px 24px;
    background: var(--gray-100);
    border-radius: 12px;
}
.legal .toc p { font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.legal .toc ol { margin: 0 0 0 20px; }
.legal .toc li { font-size: 14.5px; }
.legal .toc li + li { margin-top: 2px; }

.legal .table-wrap { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); color: var(--gray-800); }
.legal th { font-weight: 700; color: var(--gray-900); border-bottom-color: var(--gray-500); }

.legal .stand { margin-top: 56px; font-size: 13.5px; color: var(--gray-600); }

/* Footer — as on the landing page */
footer {
    padding: 40px 48px;
    background: #030306;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: flex-end; gap: 12px; font-size: 13px; line-height: 1; color: rgba(255, 255, 255, 0.25); }
.footer-brand img { height: 16px; width: auto; opacity: 0.45; display: block; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.25); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 768px) {
    .legal-bar { padding: 16px 24px; }
    .legal { padding: 40px 20px 72px; }
    .legal h1 { font-size: 32px; }
    footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
