:root {
    color-scheme: light dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111827;
    color: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 34rem),
        linear-gradient(180deg, #111827 0%, #172033 100%);
}

header,
main,
footer {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    padding: 32px 0 16px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(196, 181, 253, 0.28);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.62);
    color: #ede9fe;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.home-link:hover {
    border-color: rgba(196, 181, 253, 0.62);
    background: rgba(51, 65, 85, 0.8);
    text-decoration: none;
    transform: translateX(-2px);
}

.brand {
    color: #ddd6fe;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

select {
    min-height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #475569;
    border-radius: 10px;
    background: #1e293b;
    color: #f8fafc;
    font: inherit;
}

.hero,
.legal-section {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.hero {
    padding: clamp(24px, 6vw, 48px);
}

.legal-section {
    margin: 16px 0;
    padding: clamp(20px, 4vw, 32px);
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.25;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 7vw, 3.25rem);
}

h2 {
    color: #ddd6fe;
    font-size: 1.25rem;
}

p,
li {
    color: #dbe4f0;
    line-height: 1.75;
}

ul {
    padding-left: 1.25rem;
}

a {
    color: #c4b5fd;
}

a:focus-visible,
select:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 3px;
}

.meta {
    margin: 0;
    color: #94a3b8;
}

.notice {
    padding: 14px 16px;
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
}

footer {
    padding: 24px 0 48px;
    color: #94a3b8;
    text-align: center;
}

footer a {
    text-underline-offset: 4px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    label,
    select {
        width: 100%;
    }

    .brand-cluster {
        width: 100%;
        justify-content: space-between;
    }

    .brand {
        font-size: 0.76rem;
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
