/* ---------- LAYOUT ---------- */
.page-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 940px;
  margin: 0 auto;
  gap: 4rem;
  padding: 4rem 1.5rem 6rem;
  align-items: start;
}



/* ---------- SIDEBAR TOC ---------- */
/* toc aside */
.toc {
  position: sticky;
  top: 82px;
}

/* toc headline label */
.toc-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

/* toc list */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* toc link elements (navigate) */
.toc-list a {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.toc-list a:hover {
  color: var(--ink-muted);
  background: var(--surface-warm);
}
.toc-list a.active {
  color: var(--orange-dark);
  background: var(--orange-light);
  border-left-color: var(--orange);
  font-weight: 500;
}




/* ---------- CONTENT ---------- */
/* main container */
.legal-content {
  min-width: 0;
}

/* sections container */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

/* last container child state */
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* headlines */
.legal-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* section badge */
.legal-section h2 .section-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: var(--orange-light);
  border: 1px solid var(--orange-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* descriptions */
.legal-section p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

/* last description child state */
.legal-section p:last-child { 
    margin-bottom: 0; 
}

/* bold elements */
.legal-section p strong { 
    color: var(--ink); 
    font-weight: 500; 
}

/* lists */
.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* list elements */
.legal-section ul li {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* lest elements before stage */
.legal-section ul li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 0.55rem;
}



/* ---------- PAGE INTRO ---------- */
/* page intro container */
.page-intro {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* legal badge */
.page-intro .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

/* headline */
.page-intro h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* description */
.page-intro .lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* last update */
.page-intro .updated {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}




/* ---------- IMPRESSUM BOX ----------*/
/* impressum box container */
.impressum-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

/* impresum box element */
.impressum-box .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.3rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

/* impressum box last child state */
.impressum-box .row:last-child { 
    border-bottom: none; 
}

.impressum-box .row .key {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.impressum-box .row .val {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-muted);
}
.impressum-box .row .val a {
  color: var(--orange-dark);
  text-decoration: none;
}
.impressum-box .row .val a:hover { text-decoration: underline; }