/* ==========================================================================
   Rechtliches – /rechtliches/ (luca /legal, LAYOUT_SPEC ch. 10 / MOTION_SPEC ch. 12)
   Sections #impressum / #datenschutz / #agb (footer links point here).
   ========================================================================== */

.lg-main { gap: 120px; padding: 150px 0 0; }

/* 10.2 Heading */
.lg-heading { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; width: 100%; padding: 0 20px; }
.lg-heading__mask { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; width: 100%; padding: 0 0 2px; overflow: hidden; }
.lg-heading__mask > div { width: 100%; white-space: pre-wrap; word-break: break-word; }
.lg-heading h1 { color: #000; }

/* 10.3 Section Legal */
.lg-section { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; width: 100%; padding: 0 20px 120px; }
.lg-container { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 0; width: 100%; }

/* 10.3.1 Left Sticky + jump navigation (sticks 80px below the viewport top) */
.lg-left { position: sticky; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; flex: 1 0 0px; align-self: stretch; width: 1px; }
.lg-nav { position: sticky; top: 80px; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px; width: 100%; }
/* Legal Page Link (7lEwM): active 1, inactive .4, inactive hover .6 – spring {bounce .2, duration .4} */
.lg-link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; width: min-content; overflow: hidden; color: #000; text-decoration: none; }
.lg-link > span { white-space: pre; opacity: .4; transition: opacity var(--sp-a-d) var(--sp-a); cursor: pointer; }
.lg-link.is-active > span { opacity: 1; cursor: auto; }
@media (hover: hover) { .lg-link:not(.is-active):hover > span { opacity: .6; } }

/* 10.3.2 Content */
.lg-content { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; flex: 1 0 0px; width: 1px; }
.lg-block { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; scroll-margin-top: 80px; }
.lg-block__title { width: 100%; white-space: pre-wrap; word-break: break-word; }
.lg-block:first-child .lg-block__title { max-width: 650px; }
.lg-block__body { width: 100%; max-width: 650px; color: #000; word-break: break-word; overflow-wrap: break-word; }
/* rich text: paragraph spacing 20px (1nolgqy) */
.lg-block__body > * + * { margin-top: 20px; }
/* Portable Text sub-headings (h2 / h3 of the Mokka texts; the template's legal texts have none):
   same preset, bold like the template's legal <strong> (Switzer 700 -> DM Sans 700), h2 spaced like a new block (40px) */
.lg-block__body > .lg-h { font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: 700; }
.lg-block__body > * + .lg-h:not(.lg-h--sub) { margin-top: 40px; }
.lg-block__body strong { font-weight: 700; }
/* ul: template padding-left 3ch of Switzer 17px = 29.376px (measured live); bullet at the ul edge */
.lg-block__body ul { position: relative; padding-left: 29.376px; }
.lg-block__body li { position: relative; list-style: none; }
.lg-block__body li::before { content: "\2022"; position: absolute; left: calc(-1 * 29.376px); }
/* link preset 1wicq5s: black underline -> hover rgba(0,0,0,.6) without underline */
.lg-a { color: #000; text-decoration: underline; }
@media (hover: hover) { .lg-a:hover { color: rgba(0, 0, 0, .6); text-decoration: none; } }

@media (max-width: 809.98px) {
  .lg-heading { padding: 0 15px; }
  .lg-section { gap: 80px; }
  .lg-container { flex-direction: column; gap: 60px; }
  .lg-content { flex: none; width: 100%; }
}
