.legal-shell {
    max-width: 1120px;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid rgba(126, 166, 255, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(5, 10, 18, 0.92), rgba(13, 22, 38, 0.8)),
        url("../images/mysticraftbg.png") center / cover;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #9ac5ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-hero h2 {
    margin-bottom: 12px;
    color: #f8fbff;
    font-family: 'VT323', monospace;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.95;
    text-shadow: 0 4px 0 rgba(20, 55, 121, 0.85), 0 16px 28px rgba(0, 0, 0, 0.36);
}

.legal-hero p {
    max-width: 68ch;
    color: rgba(226, 239, 255, 0.84);
    line-height: 1.8;
}

.legal-hero-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.48));
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.legal-side,
.legal-content {
    border: 1px solid rgba(126, 166, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.94), rgba(8, 14, 26, 0.96));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.legal-side {
    position: sticky;
    top: 104px;
    padding: 18px;
}

.legal-side h2,
.legal-section h2 {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.3;
}

.legal-side h2 {
    margin-bottom: 12px;
}

.legal-side ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-side a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #aebbd3;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.legal-side a:hover,
.legal-side a:focus-visible {
    color: #ffffff;
    background: rgba(79, 140, 255, 0.08);
    outline: none;
}

.legal-side i {
    width: 16px;
    color: #6da8ff;
    text-align: center;
}

.legal-content {
    overflow: hidden;
}

.legal-section {
    padding: 26px 28px;
    border-bottom: 1px solid rgba(126, 166, 255, 0.12);
    scroll-margin-top: 120px;
}

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

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.legal-section h2 i {
    color: #6da8ff;
}

.legal-section p,
.legal-section li {
    color: rgba(218, 232, 249, 0.84);
    line-height: 1.8;
}

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

.legal-section ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 22px;
}

.legal-section strong {
    color: #ffffff;
}

.legal-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(126, 166, 255, 0.2);
    border-radius: 10px;
    color: #cde2ff;
    background: rgba(79, 140, 255, 0.06);
    line-height: 1.6;
}

.legal-note i {
    color: #6da8ff;
}

.legal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(126, 166, 255, 0.18);
    border-radius: 999px;
    color: #d8e9ff;
    background: rgba(5, 10, 18, 0.48);
    font-size: 0.9rem;
    text-decoration: none;
}

.legal-chip i {
    color: #6da8ff;
}

@media (max-width: 820px) {
    .legal-hero {
        grid-template-columns: 1fr;
        padding: 24px 18px;
    }

    .legal-hero-logo {
        width: 82px;
        height: 82px;
    }

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

    .legal-side {
        position: static;
    }

    .legal-section {
        padding: 22px 18px;
    }
}
