.legal-page {
    min-height: 100vh;
    color: #dfe5e1;
    background:
        radial-gradient(circle at 15% 8%, rgba(var(--color-accent-rgb), 0.08), transparent 26rem),
        #050608;
}

.legal-page a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 6, 8, 0.9);
    backdrop-filter: blur(18px);
}

.legal-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.legal-header__brand img {
    width: auto;
    height: 38px;
}

.legal-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #aab2ac;
    font-size: 0.9rem;
    font-weight: 600;
}

.legal-header__nav a:hover {
    color: #fff;
}

.legal-header__nav .legal-header__contact {
    padding: 0.7rem 1rem;
    color: #06120b;
    background: var(--color-accent);
    border-radius: 7px;
}

.legal-header__nav .legal-header__contact:hover {
    color: #06120b;
    background: #55ed94;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 5%;
    width: 36rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08), transparent 68%);
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding-top: 7rem;
    padding-bottom: 5.5rem;
}

.legal-kicker {
    display: inline-flex;
    margin-bottom: 1.4rem;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 900px;
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.legal-hero p {
    max-width: 760px;
    margin-top: 1.75rem;
    color: #aeb6b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2rem;
}

.legal-meta span {
    padding: 0.55rem 0.75rem;
    color: #aeb6b0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 820px);
    justify-content: center;
    gap: clamp(3rem, 7vw, 7rem);
    padding-top: 5rem;
    padding-bottom: 7rem;
}

.legal-toc {
    position: sticky;
    top: 108px;
    align-self: start;
    display: grid;
    gap: 0.75rem;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding-right: 1rem;
}

.legal-toc strong {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-toc a {
    color: #7e8781;
    font-size: 0.86rem;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.legal-toc a:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

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

.legal-content section {
    scroll-margin-top: 110px;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-content section:first-of-type {
    padding-top: 1rem;
}

.legal-content h2 {
    margin-bottom: 1.35rem;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.legal-content h3 {
    margin: 1.8rem 0 0.75rem;
    color: #f0f4f1;
    font-size: 1.05rem;
    line-height: 1.45;
}

.legal-content p,
.legal-content li {
    color: #aab2ac;
    font-size: 1rem;
    line-height: 1.85;
}

.legal-content p + p {
    margin-top: 1rem;
}

.legal-content ul {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.legal-content strong {
    color: #e9eeeb;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-accent-rgb), 0.35);
    text-underline-offset: 0.2em;
}

.legal-content a:hover {
    text-decoration-color: var(--color-accent);
}

.legal-notice {
    margin-bottom: 2rem;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-left: 3px solid var(--color-accent);
    border-radius: 8px;
}

.legal-notice strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
}

.legal-notice p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.legal-footer__inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: #747d76;
    font-size: 0.82rem;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.legal-footer a:hover,
.legal-footer a[aria-current="page"] {
    color: #fff;
}

@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3rem;
    }

    .legal-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
    }

    .legal-toc strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .legal-header__inner {
        min-height: 68px;
    }

    .legal-header__brand img {
        height: 30px;
    }

    .legal-header__nav {
        gap: 0.75rem;
        font-size: 0.78rem;
    }

    .legal-header__nav a:first-child,
    .legal-header__nav .legal-header__contact {
        display: none;
    }

    .legal-hero__inner {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

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

    .legal-content section {
        padding: 2rem 0;
    }

    .legal-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}
