/* ============================================================
   STRIDO — legal / content sub-pages (Impressum, Datenschutz, Kontakt)
   Reuses colors_and_type.css + landing/landing.css for header/footer.
   ============================================================ */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-eyebrow {
  font-size: 13px;
  font-weight: var(--z-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--z-primary-text);
  margin-bottom: 12px;
}
.legal-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: var(--z-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.legal-updated {
  font-size: 14px;
  color: var(--z-muted);
}

.legal-section { margin-top: 44px; }
.legal-section > h2 {
  font-size: 21px;
  font-weight: var(--z-weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: var(--z-weight-semibold);
  margin: 22px 0 8px;
}
.legal-section p,
.legal-section li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--z-text);
  text-wrap: pretty;
}
.legal-section p + p { margin-top: 14px; }
.legal-section p.legal-muted { color: var(--z-muted); }
.legal-section ul {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: var(--z-radius-full);
  background: var(--z-primary);
}
.legal-section a { color: var(--z-primary-text); font-weight: var(--z-weight-medium); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* Definition-style address block (Impressum § 5 DDG data) */
.legal-card-caption { font-size: 13px; color: var(--z-muted); margin: 0 0 8px; }
.legal-card {
  margin-top: 16px;
  padding: 24px;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  box-shadow: var(--z-shadow-sm);
}
.legal-card dl { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; margin: 0; }
.legal-card dt { font-size: 14px; color: var(--z-muted); }
.legal-card dd { font-size: 15px; margin: 0; color: var(--z-text); }
@media (max-width: 520px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-card dd { margin-bottom: 12px; }
}

/* Back link in header */
.lp-header-actions .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-header-actions .legal-back svg { width: 16px; height: 16px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-channels { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 18px; }
.contact-channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  box-shadow: var(--z-shadow-sm);
}
.contact-channel .legal-li-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--z-radius-sm);
  background: var(--z-surface-warm);
  border: 1px solid var(--z-primary-soft);
  color: var(--z-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-channel .legal-li-icon svg { width: 19px; height: 19px; }
.contact-channel h3 { font-size: 15px; font-weight: var(--z-weight-semibold); margin: 0 0 3px; }
.contact-channel p { font-size: 14px; color: var(--z-muted); line-height: 1.5; margin: 0; }
.contact-channel a { color: var(--z-primary-text); text-decoration: none; font-weight: var(--z-weight-medium); }
.contact-channel a:hover { text-decoration: underline; }

.contact-form {
  padding: 28px;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-lg);
  box-shadow: var(--z-shadow-sm);
}
.contact-form h2 { font-size: 19px; font-weight: var(--z-weight-semibold); margin: 0 0 4px; }
.contact-form > p { font-size: 13.5px; color: var(--z-muted); margin-bottom: 20px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-field label { font-size: 13px; font-weight: var(--z-weight-medium); color: var(--z-text); }
.contact-field input,
.contact-field textarea {
  font-family: var(--z-font-sans);
  font-size: 14px;
  color: var(--z-text);
  background: var(--z-bg);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  padding: 11px 13px;
  width: 100%;
}
.contact-field textarea { resize: vertical; min-height: 110px; }
.contact-field input:focus,
.contact-field textarea:focus { outline: 2px solid var(--z-primary); outline-offset: 1px; border-color: transparent; }
.contact-form .lp-btn { width: 100%; margin-top: 4px; }
.contact-form .lp-btn:disabled { cursor: wait; opacity: 0.65; }
.contact-form-note { min-height: 18px; font-size: 12px; color: var(--z-muted); text-align: center; margin-top: 12px; }
.contact-form-note.is-success { color: #166534; }
.contact-form-note.is-error { color: #b91c1c; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--z-muted); margin: 4px 0; }
.contact-consent input { margin-top: 2px; flex: none; }
.contact-consent a { color: var(--z-primary-text); }

/* ---------- Language switcher (shared look with the landing page) ---------- */
.lp-lang { position: relative; flex: none; }
.lp-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--z-font-sans);
  font-size: 14px;
  font-weight: var(--z-weight-medium);
  color: var(--z-text);
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--z-dur-base) ease;
}
.lp-lang-btn:hover { background: var(--z-surface-warm); }
.lp-lang-btn:focus-visible { outline: 2px solid var(--z-primary); outline-offset: 2px; }
.lp-lang-btn .lp-lang-globe { width: 16px; height: 16px; color: var(--z-muted); display: inline-flex; }
.lp-lang-btn .lp-lang-globe svg { width: 16px; height: 16px; }
.lp-lang-code { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lp-lang-caret { width: 14px; height: 14px; color: var(--z-muted); display: inline-flex; }
.lp-lang-caret svg { width: 14px; height: 14px; }
.lp-lang.open .lp-lang-caret { transform: rotate(180deg); }

.lp-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 184px;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  box-shadow: var(--z-shadow-pop);
  padding: 6px;
  display: none;
  z-index: 70;
}
.lp-lang.open .lp-lang-menu { display: block; }
.lp-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-family: var(--z-font-sans);
  font-size: 14px;
  color: var(--z-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--z-radius-sm);
  padding: 9px 10px;
  cursor: pointer;
}
.lp-lang-option:hover { background: var(--z-surface-warm); }
.lp-lang-short {
  flex: none;
  width: 30px;
  font-size: 11px;
  font-weight: var(--z-weight-semibold);
  color: var(--z-muted);
  letter-spacing: 0.04em;
}
.lp-lang-option[aria-selected="true"] { color: var(--z-primary-text); font-weight: var(--z-weight-semibold); }
.lp-lang-option[aria-selected="true"] .lp-lang-short { color: var(--z-primary-text); }
.lp-lang-check { margin-left: auto; width: 16px; height: 16px; color: var(--z-primary); opacity: 0; display: inline-flex; }
.lp-lang-check svg { width: 16px; height: 16px; }
.lp-lang-option[aria-selected="true"] .lp-lang-check { opacity: 1; }

@media (max-width: 560px) {
  .lp-header-actions .legal-back span.legal-back-label { display: none; }
  .lp-header-actions .legal-back { padding-left: 10px; padding-right: 10px; }
}

/* rendered-markdown content inside the legal body */
.legal-body { font-size: 16px; line-height: 1.7; color: var(--z-text); }
.legal-body h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-body h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--z-primary-text); }
.legal-body strong { font-weight: 600; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 0 0 16px; }
.legal-body th, .legal-body td { border: 1px solid var(--z-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body hr { border: 0; border-top: 1px solid var(--z-border); margin: 24px 0; }
