/* =====================================================
   KonzeptDruck — Legal Pages Stylesheet
   Shared by: datenschutz, agb, impressum, widerruf
   ===================================================== */

.legal-main {
  flex: 1;
  padding: var(--sp-xl) 0 calc(var(--sp-xl) * 2);
}

/* ── Header ── */
.legal-header {
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-bottom: 1px solid var(--outline-var);
  margin-bottom: var(--sp-xl);
}

.legal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 255, 0.3);
  background: rgba(0, 242, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--sp-md);
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
  color: var(--on-surface);
}

.legal-intro {
  font-size: 18px;
  color: var(--on-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* ── Table of contents (AGB only) ── */
.legal-toc {
  background: var(--surface-low);
  border: 1px solid var(--surface-var);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  max-width: 640px;
}

.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-sm);
}

.legal-toc ol {
  list-style: decimal;
  padding-left: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc a {
  font-size: 15px;
  color: var(--on-muted);
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--cyan); }

/* ── Body layout ── */
.legal-body {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sections ── */
.legal-section {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--surface-var);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: var(--sp-md);
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.legal-section h3:first-of-type { margin-top: 0; }

.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.25);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  padding: 0 6px;
}

.legal-section p {
  font-size: 16px;
  color: var(--on-muted);
  line-height: 1.75;
  margin-top: var(--sp-sm);
}
.legal-section p:first-of-type { margin-top: 0; }

.legal-section a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.legal-section a:hover { opacity: 0.8; }

/* ── Lists ── */
.legal-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 16px;
  color: var(--on-muted);
  line-height: 1.6;
}

.legal-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Address block ── */
.legal-address {
  background: var(--surface-low);
  border: 1px solid var(--surface-var);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-md) 0;
  font-size: 15px;
  color: var(--on-muted);
  line-height: 1.8;
  display: inline-block;
  min-width: 280px;
}

/* ── Highlight value (USt-ID etc) ── */
.legal-highlight {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0,242,255,0.06);
  border: 1px solid rgba(0,242,255,0.2);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
  margin-top: var(--sp-sm);
}

/* ── Callout box (e.g. Widerruf exception) ── */
.legal-callout {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  background: rgba(255, 200, 0, 0.04);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin: var(--sp-md) 0;
}

.legal-callout > .material-symbols-outlined {
  color: #ffd060;
  font-variation-settings: 'FILL' 1;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-callout p {
  font-size: 15px;
  color: var(--on-muted);
  margin: 0 !important;
}

/* ── Widerruf form mock ── */
.legal-form-block {
  background: var(--surface-low);
  border: 1px solid var(--surface-var);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-top: var(--sp-md);
  font-size: 15px;
  color: var(--on-muted);
  line-height: 1.8;
  max-width: 640px;
}

.legal-form-block p { margin-bottom: var(--sp-md); color: var(--on-muted); font-size: 15px; }
.legal-form-block strong { color: var(--on-surface); }

.legal-divider {
  border: none;
  border-top: 1px solid var(--surface-var);
  margin: var(--sp-md) 0;
}

.form-field-mock {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--surface-var);
  font-size: 14px;
  color: var(--on-muted);
  gap: var(--sp-md);
}

.form-field-mock span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--on-surface);
  font-size: 13px;
}

.field-line {
  flex: 1;
  border-bottom: 1px dotted var(--outline-var);
  height: 18px;
  display: inline-block;
}

.field-note {
  font-size: 12px !important;
  color: var(--on-muted) !important;
  opacity: 0.6;
  margin-top: var(--sp-sm) !important;
  margin-bottom: 0 !important;
}
