/* ==========================================================
   NEXT OBJEKTSERVICE – RECHTLICHE SEITEN
   Layout orientiert sich an der NEXORA-Rechtliches-Struktur,
   farblich und typografisch an Next ObjektService angepasst.
   ========================================================== */

.legal-page {
    background:
        radial-gradient(circle at 82% 6%, rgba(139, 67, 230, .13), transparent 28rem),
        radial-gradient(circle at 7% 36%, rgba(97, 40, 170, .08), transparent 26rem),
        var(--bg);
}

.legal-page .site-header {
    background: rgba(8, 7, 12, .9);
    backdrop-filter: blur(22px) saturate(140%);
    border-bottom-color: rgba(255,255,255,.08);
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 174px 0 82px;
    border-bottom: 1px solid var(--line);
}

.legal-hero::before,
.legal-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
}

.legal-hero::before {
    width: 410px;
    height: 410px;
    right: -120px;
    top: -170px;
    background: rgba(152, 76, 255, .18);
}

.legal-hero::after {
    width: 240px;
    height: 240px;
    left: -100px;
    bottom: -140px;
    background: rgba(110, 42, 197, .14);
}

.legal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #b694dc;
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .23em;
    text-transform: uppercase;
}

.legal-breadcrumb::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--purple), transparent);
}

.legal-hero h1 {
    margin: 0;
    color: #fbf9ff;
    font-family: var(--serif);
    font-size: clamp(4.3rem, 8vw, 7.4rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.05em;
}

.legal-hero h1 .accent {
    color: #b96dff;
    text-shadow: 0 0 36px rgba(141, 57, 238, .22);
}

.legal-lead {
    max-width: 750px;
    margin: 30px 0 0;
    color: #bdb5c8;
    font-size: 1.04rem;
    line-height: 1.85;
}

.legal-content {
    padding: 82px 0 96px;
}

.legal-stack {
    max-width: 970px;
    margin-inline: auto;
}

.legal-section {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 28px;
    padding: 37px 0 41px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(176, 105, 255, .42);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(158, 84, 255, .12), rgba(255,255,255,.02));
    color: #c993ff;
    box-shadow: inset 0 0 20px rgba(154, 80, 255, .06), 0 12px 35px rgba(0,0,0,.18);
}

.legal-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.55;
}

.legal-copy {
    min-width: 0;
}

.legal-number {
    display: block;
    margin-bottom: 8px;
    color: #8d809c;
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.legal-section h2 {
    margin: 0 0 12px;
    color: #f5f0fa;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -.025em;
}

.legal-section p,
.legal-section li {
    color: #b6aebf;
    line-height: 1.8;
}

.legal-section p {
    margin: 0 0 12px;
}

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

.legal-section ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.legal-section li {
    position: relative;
    padding: 5px 0 5px 22px;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1.05em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-soft);
    box-shadow: 0 0 12px var(--purple-glow);
}

.legal-section a {
    color: #d2a9ff;
    text-decoration: underline;
    text-decoration-color: rgba(207, 164, 255, .35);
    text-underline-offset: 3px;
}

.legal-placeholder {
    margin-top: 18px !important;
    padding: 14px 16px;
    border-left: 2px solid #a65cff;
    border-radius: 0 10px 10px 0;
    background: rgba(151, 76, 239, .07);
    color: #c9bcd6 !important;
}

.legal-visual {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: flex-end;
    margin: 82px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 26px;
    background: #100d16;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.legal-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background-position: center;
    background-size: cover;
    filter: saturate(.72) brightness(.58) contrast(1.08);
    transform: scale(1.02);
}

.legal-visual-imprint::before {
    background-image: url('../images/hero-property.webp');
}

.legal-visual-privacy::before {
    background-image: url('../images/value-property.webp');
}

.legal-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8,7,12,.96) 0%, rgba(8,7,12,.72) 48%, rgba(8,7,12,.25) 100%),
        linear-gradient(0deg, rgba(8,7,12,.78), transparent 62%),
        radial-gradient(circle at 14% 20%, rgba(153, 74, 252, .21), transparent 35%);
}

.legal-visual-content {
    width: min(680px, 100%);
    padding: 54px;
}

.legal-visual .eyebrow {
    margin-bottom: 16px;
}

.legal-visual h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.75rem, 5vw, 5.1rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
}

.legal-visual h2 span {
    color: #b869ff;
}

.legal-visual-line {
    width: 84px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(90deg, var(--purple-soft), var(--purple));
    box-shadow: 0 0 20px var(--purple-glow);
}

.legal-notice {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 22px;
    margin-top: 38px;
    padding: 26px 28px;
    border: 1px solid rgba(184, 119, 255, .23);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(160, 83, 255, .08), rgba(255,255,255,.018));
}

.legal-notice-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(197, 143, 255, .42);
    border-radius: 50%;
    color: #d0a6ff;
    font-family: var(--serif);
    font-size: 1.3rem;
}

.legal-notice h3 {
    margin: 0 0 6px;
    color: #f4eef9;
    font-size: .98rem;
}

.legal-notice p {
    margin: 0;
    color: #a99fb4;
    font-size: .9rem;
    line-height: 1.7;
}

.legal-page .footer {
    border-top: 1px solid rgba(255,255,255,.1);
}

.legal-page .footer-legal a.current {
    color: #ca9dff;
}

@media (max-width: 760px) {
    .legal-hero {
        padding: 142px 0 62px;
    }

    .legal-hero h1 {
        font-size: clamp(3.65rem, 19vw, 5.6rem);
    }

    .legal-content {
        padding: 58px 0 72px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 31px 0 35px;
    }

    .legal-icon {
        width: 52px;
        height: 52px;
    }

    .legal-visual {
        min-height: 420px;
        margin-top: 58px;
        border-radius: 20px;
    }

    .legal-visual-content {
        padding: 32px 26px;
    }

    .legal-notice {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }
}
