/* ============================================================
   Nicci Legal — Generischer Rechtsseiten-Style
   Scope: body.lp-legal
   Eingesetzt für: Impressum, Datenschutz, AGB, Widerruf, Cookie.
   Content kommt typischerweise aus einem Plugin-Shortcode
   (z. B. IT-Recht-Kanzlei) und ist nicht im Editor pflegbar.
   ============================================================ */

/* ============ TOKENS ============
   Alle Werte stammen aus shared/tokens.css (:root). Keine Overrides.
*/

/* ============ BASE ============ */
.lp-legal,
.lp-legal *,
.lp-legal *::before,
.lp-legal *::after {
  box-sizing: border-box;
}
.lp-legal {
  margin: 0;
  padding: 0;
  background: var(--nc-bg);
  color: var(--nc-ink);
  font-family: var(--nc-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Hintergrund-Blobs aus shared/blobs.css; Stage über Blob-Layer heben. */
.lp-legal .lp-stage { position: relative; z-index: 1; }
.lp-legal img { max-width: 100%; height: auto; display: block; }
.lp-legal ::selection { background: var(--nc-sage-soft); color: var(--nc-ink); }
.lp-legal :focus-visible {
  outline: 2px solid var(--nc-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ LAYOUT ============ */
.lp-legal .lp-stage {
  container-type: inline-size;
  min-height: 100vh;
  padding: var(--nc-stage-pad) clamp(12px, 3vw, 32px) 48px;
}

/* Topbar erbt aus modules/landing/parts/landing-topbar.php — Styles aus
   .lp-entscheidungstool. Damit dieselbe Topbar hier identisch aussieht,
   spiegeln wir die nötigen Topbar-Selektoren auf body.lp-legal. */
.lp-legal .lp-topbar {
  max-width: var(--nc-container);
  margin: 0 auto clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.lp-legal .lp-wordmark {
  font-family: var(--nc-font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--nc-ink);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.lp-legal a.lp-wordmark:hover {
  color: var(--nc-ink);
  text-decoration: none;
}
.lp-legal .lp-avatar {
  width: clamp(92px, 10vw, 120px);
  height: clamp(92px, 10vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--nc-surface);
  box-shadow: 0 4px 18px rgb(28 26 21 / 0.12);
  background: var(--nc-surface);
}

.lp-legal .lp-legal__main {
  max-width: var(--nc-container);
  margin: 0 auto;
}

/* ============ CARD ============ */
.lp-legal .lp-card {
  background: var(--nc-surface);
  border-radius: var(--nc-radius);
  padding: var(--nc-card-pad);
  box-shadow: var(--nc-shadow-card);
}

.lp-legal .lp-legal__title {
  font-family: var(--nc-font-head);
  font-weight: 600;
  font-size: clamp(26px, 2vw + 14px, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--nc-ink);
  margin: 0 0 clamp(18px, 2vw, 28px);
  padding-bottom: clamp(14px, 1.5vw, 20px);
  border-bottom: 1px solid var(--nc-rule);
}

/* ============ CONTENT (Shortcode-Output) ============
   Der IT-Recht-Kanzlei-Shortcode liefert Plain HTML mit h2/h3/p/ul/ol/dl/a.
   Wir stylen alles defensiv, ohne das Markup zu beschneiden.
*/
.lp-legal .lp-legal__body {
  font-family: var(--nc-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--nc-ink);
}

.lp-legal .lp-legal__body > :first-child { margin-top: 0; }
.lp-legal .lp-legal__body > :last-child  { margin-bottom: 0; }

.lp-legal .lp-legal__body h1,
.lp-legal .lp-legal__body h2,
.lp-legal .lp-legal__body h3,
.lp-legal .lp-legal__body h4,
.lp-legal .lp-legal__body h5,
.lp-legal .lp-legal__body h6 {
  font-family: var(--nc-font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nc-ink);
  text-wrap: balance;
  margin: 1.6em 0 0.5em;
}
.lp-legal .lp-legal__body h2 { font-size: clamp(20px, 1vw + 14px, 24px); }
.lp-legal .lp-legal__body h3 { font-size: clamp(17px, 0.6vw + 14px, 19px); font-weight: 600; font-style: normal; }
.lp-legal .lp-legal__body h4 { font-size: 16px; }
.lp-legal .lp-legal__body h5,
.lp-legal .lp-legal__body h6 { font-size: 15px; }

.lp-legal .lp-legal__body p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lp-legal .lp-legal__body strong { font-weight: 600; }

.lp-legal .lp-legal__body a {
  color: var(--nc-ink);
  text-decoration: underline;
  text-decoration-color: var(--nc-sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.lp-legal .lp-legal__body a:hover {
  color: var(--nc-ink);
  text-decoration-color: var(--nc-ink);
}

.lp-legal .lp-legal__body ul,
.lp-legal .lp-legal__body ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
}
.lp-legal .lp-legal__body ul { list-style: disc; }
.lp-legal .lp-legal__body ol { list-style: decimal; }
.lp-legal .lp-legal__body li { margin: 0 0 0.4em; }
.lp-legal .lp-legal__body li::marker { color: var(--nc-olive); }

.lp-legal .lp-legal__body dl {
  margin: 0 0 1.2em;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 4px;
}
.lp-legal .lp-legal__body dt {
  font-weight: 600;
  color: var(--nc-ink);
  margin-top: 0.6em;
}
.lp-legal .lp-legal__body dd {
  margin: 0 0 0.4em;
  color: var(--nc-ink);
}
@container (inline-size > 640px) {
  .lp-legal .lp-legal__body dl {
    grid-template-columns: minmax(180px, 220px) 1fr;
    column-gap: 24px;
  }
  .lp-legal .lp-legal__body dt { margin-top: 0; }
}

.lp-legal .lp-legal__body hr {
  border: 0;
  border-top: 1px solid var(--nc-rule);
  margin: 1.6em 0;
}

.lp-legal .lp-legal__body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--nc-sage);
  background: var(--nc-surface-soft);
  border-radius: var(--nc-radius);
  font-size: 15px;
  color: var(--nc-ink);
}

.lp-legal .lp-legal__body code,
.lp-legal .lp-legal__body kbd,
.lp-legal .lp-legal__body samp {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--nc-surface-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.lp-legal .lp-legal__body pre {
  background: var(--nc-surface-soft);
  border-radius: var(--nc-radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 1.2em;
}
.lp-legal .lp-legal__body pre code {
  background: transparent;
  padding: 0;
}

.lp-legal .lp-legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 14px;
}
.lp-legal .lp-legal__body th,
.lp-legal .lp-legal__body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--nc-rule);
  text-align: left;
  vertical-align: top;
}
.lp-legal .lp-legal__body th {
  font-weight: 600;
  color: var(--nc-ink);
  background: var(--nc-surface-soft);
}

.lp-legal .lp-legal__body address {
  font-style: normal;
}

/* ============ STATES / MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .lp-legal *,
  .lp-legal *::before,
  .lp-legal *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ============ PRINT ============ */
@media print {
  .lp-legal .lp-topbar,
  .lp-legal .nc-site-footer { display: none; }
  .lp-legal .lp-card {
    box-shadow: none;
    padding: 0;
  }
}
