/* ===== Legal Pages ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #0f1117;
  --bg2:    #1a1d27;
  --bg3:    #22273a;
  --border: #2e3350;
  --text:   #e8eaf6;
  --text2:  #9399b5;
  --accent: #5b7cfa;
  --accent2:#7b9cff;
  --radius: 10px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.legal-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-link {
  color: var(--accent2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* Main Content */
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.legal-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text2);
  font-size: .875rem;
  margin-bottom: 36px;
}

section {
  margin-bottom: 32px;
}

section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

section p {
  color: var(--text2);
  margin-bottom: 10px;
  font-size: .9375rem;
}

section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text2);
  font-size: .9375rem;
}

section ul li {
  margin-bottom: 6px;
}

section a {
  color: var(--accent2);
  text-decoration: none;
}
section a:hover { text-decoration: underline; }

strong { color: var(--text); font-weight: 600; }

/* Widerruf: Highlight Box */
.highlight-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

/* Widerruf: Muster-Formular */
.form-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.8;
}
.form-box p { margin-bottom: 10px; color: var(--text2); }

/* Footer */
.legal-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}

.legal-footer a {
  color: var(--text2);
  text-decoration: none;
  font-size: .8rem;
}
.legal-footer a:hover { color: var(--accent2); }

@media (max-width: 480px) {
  .legal-main { padding: 24px 16px 56px; }
  .legal-main h1 { font-size: 1.4rem; }
}
