.legal-page-shell {
    min-height: 100vh;
    background: #0a0b10;
}

.legal-page {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 2rem;
}

.legal-page__container {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.legal-page__glow {
    position: absolute;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
}

.legal-page__glow--left {
    top: 4rem;
    left: -8rem;
    background: rgba(0, 197, 255, 0.18);
}

.legal-page__glow--right {
    top: 14rem;
    right: -10rem;
    background: rgba(109, 40, 217, 0.18);
}

.legal-back-wrap {
    margin-bottom: 2rem;
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 20, 0.75);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.legal-back-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(18, 21, 31, 0.88);
}

.legal-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.legal-hero__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.15rem;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 111, 255, 0.35), rgba(0, 111, 255, 0.12));
    border: 1px solid rgba(75, 145, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 52, 120, 0.3);
    font-size: 2rem;
    color: #8bc7ff;
}

.legal-hero__title {
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(255, 152, 85, 0.9);
}

.legal-hero__updated,
.legal-hero__summary {
    margin: 0;
}

.legal-hero__updated {
    margin-top: 0.85rem;
    font-size: 1rem;
    color: #a8c2f8;
    font-weight: 600;
}

.legal-hero__summary {
    margin-top: 0.9rem;
    max-width: 680px;
    font-size: 1.04rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.legal-sections {
    display: grid;
    gap: 1.35rem;
}

.legal-card {
    padding: 2rem 2.1rem;
    border-radius: 1.8rem;
    background: rgba(15, 17, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.legal-card__heading {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1.25rem;
}

.legal-card__heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.legal-card__number {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.legal-card__paragraph {
    margin: 0 0 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

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

.legal-card__list {
    margin: 1.15rem 0 0;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-card__list li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.legal-card__list li:last-child {
    margin-bottom: 0;
}

.updates-page .legal-hero__icon {
    background: linear-gradient(180deg, rgba(0, 207, 255, 0.34), rgba(0, 207, 255, 0.12));
    border-color: rgba(0, 207, 255, 0.28);
    color: #77f5ff;
}

.updates-timeline {
    position: relative;
    display: grid;
    gap: 1.4rem;
    padding-left: 1rem;
}

.updates-timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 9.9rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(0, 197, 255, 0.35), rgba(255, 255, 255, 0.04));
}

.update-row {
    position: relative;
    display: grid;
    grid-template-columns: 8rem 1rem 1fr;
    gap: 0.9rem;
    align-items: start;
}

.update-row__date {
    padding-top: 0.4rem;
    font-size: 0.95rem;
    color: rgba(168, 194, 248, 0.82);
}

.update-row__dot {
    position: relative;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.7rem;
    border-radius: 999px;
    background: #00d4ff;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.12);
}

.update-row__content {
    padding: 2rem 2.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.update-row__content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 198, 255, 0.1);
}

.update-row__content h2 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.update-row__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

@media (max-width: 767.98px) {
    .legal-page {
        padding-top: 6.75rem;
    }

    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-card,
    .update-row__content {
        padding: 1.4rem 1.2rem;
        border-radius: 1.25rem;
    }

    .updates-timeline {
        padding-left: 0;
    }

    .updates-timeline::before {
        left: 0.45rem;
    }

    .update-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding-left: 1.8rem;
    }

    .update-row__date {
        padding-top: 0;
        font-size: 0.9rem;
    }

    .update-row__dot {
        position: absolute;
        left: 0;
        top: 1.15rem;
        margin-top: 0;
    }
}
