/* ============================================================
   Saintly — Legal pages (Impressum, Datenschutz, Privacy, Terms)
   Editorial, cream, quiet. Matches the marketing site's tokens.
   ============================================================ */

:root {
  --cream-bg:           #F4E6D0;
  --cream-card:         #FBF7EE;
  --cream-text:         #1A1410;
  --cream-text-subtle:  rgba(26,20,16,0.55);
  --cream-text-muted:   rgba(26,20,16,0.30);
  --cream-divider:      rgba(26,20,16,0.10);
  --cream-card-border:  rgba(26,20,16,0.08);
  --gold:               #D4A94C;
  --illo-rust:          #8B3A22;
  --serif: 'Georgia', 'Times New Roman', Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
           system-ui, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--cream-bg);
  color: var(--cream-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

img { display: block; max-width: 100%; }

/* ============================================================
   Header (simplified nav, shared with marketing site feel)
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 230, 208, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--cream-divider);
}
.legal-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream-text);
  text-decoration: none;
}
.legal-brand .mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--illo-rust);
  display: flex; align-items: center; justify-content: center;
}
.legal-brand .mark img { width: 100%; height: 100%; object-fit: cover; }

.legal-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}
.legal-nav a {
  color: var(--cream-text-subtle);
  text-decoration: none;
  transition: color 150ms ease;
}
.legal-nav a:hover { color: var(--cream-text); }
.legal-nav a.active {
  color: var(--cream-text);
  position: relative;
}
.legal-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================================
   Page frame
   ============================================================ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 32px 96px;
}
.legal-page .idx {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-text-subtle);
  font-weight: 700;
  margin-bottom: 20px;
}
.legal-page .idx::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-3px);
}
.legal-page > h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream-text);
  margin: 0 0 20px;
  text-wrap: balance;
}
.legal-page > .subtitle {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-text-muted);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--cream-divider);
  margin-bottom: 56px;
  font-weight: 600;
}

/* ============================================================
   Article typography
   ============================================================ */
.legal-page article { counter-reset: section; }

.legal-page article h2 {
  counter-increment: section;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--cream-text);
  margin: 64px 0 18px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-divider);
  position: relative;
}
.legal-page article h2::before {
  content: "§ " counter(section, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--cream-text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.legal-page article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-page article h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--cream-text);
  margin: 28px 0 10px;
}
.legal-page article p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream-text);
  margin: 0 0 16px;
}
.legal-page article ul,
.legal-page article ol {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.legal-page article li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-text);
}
.legal-page article ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.legal-page article ol { counter-reset: item; }
.legal-page article ol > li {
  counter-increment: item;
  padding-left: 34px;
}
.legal-page article ol > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.legal-page article strong {
  font-weight: 600;
  color: var(--cream-text);
}
.legal-page article a {
  color: var(--cream-text);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: opacity 150ms ease;
}
.legal-page article a:hover { opacity: 0.7; }

/* ============================================================
   Footer (minimal)
   ============================================================ */
.legal-footer {
  border-top: 1px solid var(--cream-divider);
  padding: 40px 32px 56px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cream-text-muted);
}
.legal-footer a {
  color: var(--cream-text-subtle);
  text-decoration: none;
  transition: color 150ms ease;
}
.legal-footer a:hover { color: var(--cream-text); }
.legal-footer .foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  .legal-header-inner { padding: 18px 22px; }
  .legal-brand { font-size: 18px; }
  .legal-nav { gap: 16px; font-size: 12px; }
  .legal-page {
    padding: 56px 22px 72px;
  }
  .legal-page > h1 { font-size: clamp(32px, 9vw, 48px); }
  .legal-page article h2 { margin-top: 48px; padding-top: 28px; }
  .legal-footer {
    padding: 28px 22px 40px;
    flex-direction: column;
    align-items: flex-start;
  }
}
