/* Legal Pages (Privacy, Terms, Imprint) */

.legal-wrapper {
    background: #f5f5f7;
    border-radius: 0 1rem 0 0;
    padding: 4.375rem;
}

.legal-wrapper .legal__page-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 3.75rem;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 0 1.5rem;
    text-align: left;
}

.legal-wrapper--fixed-tabs .legal__page-title {
    border-bottom: 1px solid #E9EAEB;
    padding-bottom: 1.5rem;
}

.legal {
    display: flex;
    gap: 2rem;
}

.legal__sidebar {
    width: 15rem;
    flex-shrink: 0;
}

.legal-wrapper--privacy .legal__sidebar {
    width: 12.5rem;
}

.legal__sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 1.5rem;
}

.legal__sidebar-link {
    display: flex;
    align-items: center;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #717680;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.legal__sidebar-link:hover {
    color: #000000;
}

.legal__sidebar-link.active {
    color: #000000;
    font-weight: 600;
    border-left-color: #000000;
}

.legal__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-wrapper .legal__section-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: #181D27;
    margin: 0;
}

.legal-wrapper .legal__content h2,
.legal-wrapper .legal__content h3,
.legal-wrapper .legal__content h4 {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: 0;
    color: #535862;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.legal-wrapper .legal__content h2 {
    margin: 1.25rem 0 0;
    color: #181D27;
}

.legal-wrapper .legal__content > .legal__section:first-child > :first-child {
    margin-top: 0;
}

.legal-wrapper .legal__content h3 {
    margin: 0.75rem 0 0;
}

.legal-wrapper .legal__content h4 {
    margin: 0.5rem 0 0;
}

.legal-wrapper .legal__content h2 b {
    font-weight: 600;
    flex-shrink: 0;
}

.legal-wrapper .legal__content h3 b,
.legal-wrapper .legal__content h4 b {
    font-weight: 400;
    flex-shrink: 0;
}

.legal-wrapper .legal__content p {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #535862;
    margin: 0;
}

.legal-wrapper .legal__content ul,
.legal-wrapper .legal__content ol {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #535862;
    margin: 0;
    padding-left: 1.5rem;
}

.legal-wrapper .legal__content li {
    margin-bottom: 0.25rem;
}

.legal-wrapper .legal__content a {
    color: #181D27;
    text-decoration: underline;
    word-break: break-all;
}

.legal-wrapper .legal__content a:hover {
    color: #535862;
}

.legal-wrapper .legal__address {
    font-style: normal;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #535862;
    margin: 0;
}

/* Imprint page */

.imprint__divider {
    border: none;
    border-top: 1px solid #E9EAEB;
    margin: 1.5rem 0 2rem;
}

.imprint__grid {
    display: flex;
    gap: 3rem;
}

.imprint__left {
    width: 12.5rem;
    flex-shrink: 0;
}

.imprint__left .legal__address {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: #181D27;
}

.imprint__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.imprint__block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.imprint__label {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    color: #717680;
}

.imprint__block p {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: #181D27;
    margin: 0;
}

.legal-wrapper--fixed-tabs {
    height: calc(100vh - 1.5rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-wrapper--fixed-tabs .legal {
    flex: 1;
    min-height: 0;
}

.legal-wrapper--fixed-tabs .legal__sidebar {
    align-self: flex-start;
    position: static;
}

.legal-wrapper--fixed-tabs .legal__sidebar-nav {
    position: static;
    top: auto;
}

.legal-wrapper--fixed-tabs .legal__content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 1.5rem 1rem 3.75rem;
    }

    .legal-wrapper--fixed-tabs {
        height: auto;
        overflow: visible;
    }

    .legal-wrapper--fixed-tabs .legal__content {
        overflow-y: visible;
        padding-right: 0;
    }

    .legal {
        flex-direction: column;
    }

    .legal__sidebar {
        position: static;
        width: auto;
        margin-bottom: 1.5rem;
    }

    .legal-wrapper .legal__page-title {
        font-size: 1.875rem;
        line-height: 2.375rem;
    }

    .imprint__grid {
        flex-direction: column;
        gap: 2rem;
    }

    .imprint__left {
        width: auto;
    }
}