:root {
    color-scheme: dark;
    --bg: #050506;
    --surface: #111113;
    --surface-strong: #18181b;
    --text: #f6f6f7;
    --muted: #a1a1aa;
    --border: #29292e;
    --accent: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, #27272c 0, transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1.7;
}
a { color: inherit; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}
.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--text); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    cursor: pointer;
    list-style: none;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { position: absolute; left: 0; content: ""; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.mobile-menu[open] .menu-icon { background: transparent; }
.mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-menu-panel {
    position: absolute;
    z-index: 10;
    top: 50px;
    right: 0;
    display: grid;
    min-width: 210px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #111113;
    box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
}
.mobile-menu-panel a {
    padding: 13px 16px;
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}
.mobile-menu-panel a + a { border-top: 1px solid var(--border); }
.mobile-menu-panel a[aria-current="page"] { color: var(--text); }
.legal {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 72px 0 96px;
}
.badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
h1 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: clamp(42px, 7vw, 66px);
    line-height: 1;
    letter-spacing: -0.055em;
}
.subtitle { margin-bottom: 44px; color: var(--muted); font-size: 14px; }
h2 {
    margin: 42px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 21px;
    letter-spacing: -0.02em;
}
h3 { margin: 22px 0 8px; color: #d4d4d8; font-size: 16px; }
p { margin-bottom: 14px; color: #c4c4cc; }
ul { margin: 0 0 14px; padding-left: 24px; }
li { margin-bottom: 7px; color: #c4c4cc; }
.legal a:not(.brand) {
    color: var(--text);
    text-decoration-color: #71717a;
    text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--text); }
.highlight {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    color: #d4d4d8;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}
footer div { display: flex; flex-wrap: wrap; gap: 18px; }
a:focus-visible,
summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 1080px); }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .legal { padding: 50px 0 72px; }
    h1 { font-size: 42px; }
    .subtitle { margin-bottom: 34px; }
    h2 { margin-top: 36px; }
    footer { flex-direction: column; }
}
