:root {
    --legal-bg: linear-gradient(90deg, rgb(0, 0, 1) 0%, rgb(26, 26, 26) 50%, rgb(0, 0, 0) 100%);
    --legal-surface: rgba(255, 255, 255, 0.055);
    --legal-surface-strong: rgba(111, 0, 255, 0.12);
    --legal-border: rgba(219, 223, 231, 0.20);
    --legal-text: #dadada;
    --legal-muted: #aeb2bc;
    --legal-title: #ffffff;
    --legal-accent: #c300ff;
    --legal-accent-soft: #d9a4ff;
    --legal-radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--legal-text);
    background: var(--legal-bg);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    line-height: 1.75;
    letter-spacing: 0.02rem;
}

.legal-shell {
    width: min(100% - 2rem, 1080px);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.legal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--legal-title);
    text-decoration: none;
}

.legal-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.legal-brand span {
    font-weight: 800;
    letter-spacing: 0.16rem;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.05rem;
    border: 1px solid rgba(195, 0, 255, 0.58);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(195, 0, 255, 0.30), rgba(77, 95, 255, 0.22));
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--legal-accent-soft);
    background: linear-gradient(135deg, rgba(195, 0, 255, 0.48), rgba(77, 95, 255, 0.35));
    outline: none;
}

.legal-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 3.4rem);
    border: 1px solid var(--legal-border);
    border-radius: var(--legal-radius);
    background:
        linear-gradient(180deg, rgba(111, 0, 255, 0.08), transparent 18rem),
        var(--legal-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff, #4d5fff, #c300ff);
}

.legal-card h1 {
    margin: 0 0 0.75rem;
    color: var(--legal-title);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: 0.06rem;
}

.legal-card h1 + p {
    margin-top: 0;
    color: var(--legal-muted);
}

.legal-card h2 {
    margin: 2.7rem 0 1rem;
    padding-bottom: 0.55rem;
    color: var(--legal-accent-soft);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.3;
    border-bottom: 1px solid rgba(219, 223, 231, 0.12);
}

.legal-card h3 {
    margin: 1.8rem 0 0.7rem;
    color: var(--legal-title);
    font-size: 1.15rem;
}

.legal-card p {
    margin: 0 0 1rem;
}

.legal-card ul,
.legal-card ol {
    margin: 0.7rem 0 1.25rem;
    padding-left: 1.4rem;
}

.legal-card li {
    margin: 0.45rem 0;
}

.legal-card strong {
    color: #fff;
}

.legal-card a {
    color: var(--legal-accent-soft);
    text-underline-offset: 0.2rem;
}

.legal-card a:hover,
.legal-card a:focus-visible {
    color: #fff;
}

.legal-card code {
    padding: 0.12rem 0.38rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

.legal-bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.legal-bottom-action .home-button {
    min-width: 210px;
}

@media (max-width: 640px) {
    .legal-shell {
        width: min(100% - 1rem, 1080px);
        padding-top: 1rem;
    }

    .legal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .legal-brand {
        justify-content: center;
    }

    .legal-card {
        border-radius: 12px;
    }
}
