/* =================================================================
   LM Websolution – Legal Pages (Impressum & Datenschutz)
   legal.css – requires style.css to be loaded first
================================================================= */

/* ── Body & Layout ────────────────────────────────────────────── */
.legal-body {
  background: #f9f9f8;
}

.legal-main {
  padding-top: var(--nav-h, 64px);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.legal-hero {
  background: var(--navy, #0f1f44);
  padding: 4rem 1.5rem 3.5rem;
}

.legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero-card {
  color: #fff;
}

.legal-eyebrow {
  font-family: var(--font-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}

.legal-title {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.legal-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-meta-pill {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ── Shell (two-column) ───────────────────────────────────────── */
.legal-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 760px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem 4rem;
  }
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.legal-sidebar-card {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 1.5rem);
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(10,10,10,0.06);
}

@media (max-width: 760px) {
  .legal-sidebar-card {
    position: static;
  }
}

.legal-sidebar-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(10,10,10,0.4);
  margin-bottom: 0.75rem;
}

.legal-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-sidebar-list a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(10,10,10,0.6);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.legal-sidebar-list a:hover {
  background: rgba(43,111,255,0.07);
  color: var(--accent, #2B6FFF);
}

/* ── Article Content ──────────────────────────────────────────── */
.legal-page {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(10,10,10,0.05);
}

@media (max-width: 500px) {
  .legal-page {
    padding: 1.5rem 1.25rem;
  }
}

.legal-page > h1 {
  display: none; /* hidden – already shown in hero */
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(10,10,10,0.07);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy, #0f1f44);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: rgba(10,10,10,0.65);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-section li {
  font-size: 0.9rem;
  color: rgba(10,10,10,0.65);
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.legal-section a {
  color: var(--accent, #2B6FFF);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-updated {
  font-size: 0.8rem;
  color: rgba(10,10,10,0.4);
  margin-bottom: 0.5rem !important;
}

.legal-highlight {
  background: rgba(43,111,255,0.05);
  border-left: 3px solid var(--accent, #2B6FFF);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}

.legal-highlight p {
  margin-bottom: 0 !important;
  font-size: 0.875rem;
  color: rgba(10,10,10,0.7);
}
