/* The White Palace — Rechtliches pages and consent UI.
   Reuses the colours, typography and spacing tokens from styles.css so the
   legal pages read as part of the existing site, not as a separate document. */

.legal-page .site-header { background: rgba(26, 23, 19, .94); box-shadow: 0 1px 0 var(--line-light); backdrop-filter: blur(16px); }
.legal-page .site-header .brand-logo { filter: brightness(0) invert(1); }
.legal-main { padding: 130px 0 0; }
.legal-shell { width: min(820px, calc(100% - 64px)); margin: 0 auto; }
.legal-hero { padding: 40px 0 12px; }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(2.3rem, 5vw, 3.5rem); }
.legal-hero .legal-intro { color: var(--muted); font-size: 16px; }
.legal-prose { padding: 24px 0 90px; }
.legal-prose h2 { margin: 44px 0 14px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; }
.legal-prose p { margin: 0 0 16px; }
.legal-prose h3, .legal-preview h3 { margin: 28px 0 12px; font-size: 1.15rem; line-height: 1.45; }
.legal-prose h4, .legal-preview h4 { margin: 20px 0 10px; font-size: 1rem; line-height: 1.5; }
.legal-prose .legal-section, .legal-preview .legal-section { overflow-wrap: anywhere; line-height: 1.75; }
.legal-prose ul, .legal-preview ul { padding-left: 24px; margin: 0 0 20px; }
.legal-prose li + li, .legal-preview li + li { margin-top: 12px; }
.legal-prose a { color: var(--gold); text-decoration: underline; }
.legal-prose a:hover { color: var(--gold-soft); }
.legal-section { padding-top: 8px; border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: 0; }
.legal-facts { margin: 0 0 24px; }
.legal-facts dt { margin-top: 18px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.legal-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.legal-updated { color: var(--muted); font-size: 14px; }
.legal-empty { margin: 24px 0; padding: 22px; border: 1px dashed var(--line); color: var(--muted); }
.legal-back { display: inline-flex; gap: 8px; margin: 34px 0 0; color: var(--gold); font-size: 13px; }
.legal-back:hover { color: var(--gold-soft); }

/* Cookie-Einstellungen page */
.legal-consent { margin: 8px 0 40px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.legal-consent h2 { margin: 0 0 10px; }
.legal-consent-status { color: var(--muted); }
.legal-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Consent controls (shared by banner, dialog and page) */
.consent-button { min-height: 44px; padding: 11px 18px; border: 1px solid transparent; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.consent-button.is-solid { color: var(--white); background: var(--gold); }
.consent-button.is-solid:hover { background: #96703f; }
.consent-button.is-outline { color: inherit; border-color: currentColor; background: transparent; }
.consent-button.is-quiet { color: inherit; background: transparent; text-decoration: underline; }
.consent-privacy-link { color: var(--gold-soft); font-size: 12px; text-decoration: underline; }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 22px clamp(20px, 5vw, 64px); color: var(--white); background: #17130f; box-shadow: 0 -1px 0 rgba(255, 255, 255, .12); }
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; max-width: 1160px; margin: 0 auto; }
.cookie-banner-copy { flex: 1 1 420px; min-width: 0; }
.cookie-banner-title { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.cookie-banner-text p { margin: 0 0 6px; color: rgba(255, 255, 255, .74); font-size: 13px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Cookie settings dialog */
.cookie-dialog { width: min(92vw, 620px); max-width: none; padding: 0; border: 0; color: var(--ink); background: var(--paper); }
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.cookie-dialog-form { padding: 28px; }
.cookie-dialog h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.cookie-dialog-intro { color: var(--muted); }
.cookie-categories { display: grid; gap: 14px; margin: 20px 0; padding: 0; list-style: none; }
.cookie-category { padding: 14px; border: 1px solid var(--line); }
.cookie-category label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cookie-category input { width: 18px; height: 18px; accent-color: var(--gold); }
.cookie-category-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cookie-dialog .consent-button.is-outline,
.legal-consent .consent-button.is-outline { color: var(--ink); border-color: var(--line); }
.cookie-dialog .consent-button.is-quiet,
.legal-consent .consent-button.is-quiet { color: var(--ink); }

@media (max-width: 600px) {
  .legal-shell { width: calc(100% - 40px); }
  .legal-main { padding-top: 108px; }
  .cookie-banner { padding: 18px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .consent-button { flex: 1 1 auto; }
}
