.legal-slider {
    display: flex;
    width: 100vw;
    height: 100vh;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.legal-page {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    height: 100vh;
    flex: 0 0 100vw;
    display: flex;
    background-color: var(--background-main);
    color: var(--text-light);
    overflow: hidden;
    scroll-snap-align: start;
}

.impressum-layout {
    display: grid;
    grid-template-columns: 120px minmax(600px, 900px);
    height: 100vh;
    box-sizing: border-box;
    padding: 96px 240px 80px 260px;
}

.portfolio-back-link {
    display: none;
}

.legal-desktop-socials .social-links {
    position: absolute;
    top: 53px;
    right: 220px;
    z-index: 10;
}

.legal-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 54px;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px var(--highlight-main);
    width: 120px;
    margin: 0;
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.privacy-page {
    padding: 196px 240px 80px 260px;
    box-sizing: border-box;
    align-items: flex-start;
}

.privacy-page::after {
    content: none;
}

#privacy::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background-color: var(--highlight-main);
}

.legal-content {
    max-width: 860px;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-layout {
    display: flex;
    gap: 42px;
}

.legal-column {
    width: 520px;
    flex-shrink: 0;
}

.legal-content h3,
.legal-column h3 {
    color: var(--highlight-main);
    margin: 0;
    font-size: 18px;
}

.legal-content p {
    font-size: 18px;
}

.legal-contact-info {
    position: absolute;
    top: 96px;
    right: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 2;
}

.legal-right-footer {
    position: absolute;
    right: 120px;
    bottom: 48px;
    z-index: 2;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding: 0;
    font-size: 16px;
}

.legal-right-footer a,
.legal-right-footer button {
    color: var(--text-light);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.legal-right-footer a:hover,
.legal-right-footer button:hover {
    color: var(--highlight-light);
}

.legal-next-link {
    position: absolute;
    top: 50%;
    right: 220px;
    z-index: 5;
    transform: translateY(-50%);

}

.legal-prev-link {
    position: absolute;
    top: 48.5%;
    right: 120px;
    z-index: 5;
    transform: translateY(-50%);

}

.legal-next-link img,
.legal-prev-link img {
    width: 110px;
    filter: hue-rotate(110deg);
}

.legal-next-link img {
    transform: rotate(180deg);
}

.logo,
.logo:focus,
.logo:focus-visible,
.logo:hover {
    outline: none;
    border: none;
    text-decoration: none;
}

.mobile-footer-logo {
    display: none;
}

.legal-desktop-socials {
    display: block;
}

.legal-mobile-actions {
    display: none;
}