@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    --bg: #fbfbf9;
    --bg-deep: #f1f1ed;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);
    --text: #111111;
    --text-secondary: #4e4e4e;
    --text-muted: #7a7a7a;
    --accent: #151515;
    --accent-strong: #000000;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    --radius-lg: 24px;
    --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,0.96), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 0, 0, 0.04), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap, .footer-inner, .legal-shell {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 251, 249, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.46);
}

.site-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    font-size: 1rem;
}

.brand::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, #111111 0%, #5f5f5f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.header-nav-shell,
.site-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav-shell {
    margin-left: auto;
    gap: 18px;
}

.site-nav {
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.7);
    color: var(--text);
}

.nav-toggle {
    display: none;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.65);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary {
    background: rgba(255,255,255,0.5);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-secondary:hover { background: rgba(255,255,255,0.78); }

.legal-page {
    padding: 32px 0 64px;
}

.legal-card {
    padding: 32px;
    border-radius: 32px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(255,255,255,0.84);
    box-shadow: var(--shadow);
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.legal-card h1 {
    margin: 0;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.legal-lead {
    margin: 16px 0 0;
    max-width: 680px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-sections {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.legal-section {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.legal-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.72;
}

.legal-note {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(17,17,17,0.06);
    color: var(--text-secondary);
    line-height: 1.65;
}

.footer {
    padding: 18px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.76);
    box-shadow: 0 18px 44px rgba(20, 32, 24, 0.06);
}

.footer-column strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.footer-brand::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #111111, #5f5f5f);
}

.footer-copy {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

@media (max-width: 820px) {
    .site-header {
        position: static;
        background: transparent;
        border-bottom: 0;
        backdrop-filter: none;
    }

    .site-header-inner {
        min-height: auto;
        padding-top: 18px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav-shell {
        display: none;
        width: 100%;
        margin-left: 0;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255,255,255,0.72);
        border: 1px solid rgba(255,255,255,0.84);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .header-nav-shell[data-open="true"] {
        display: flex;
    }

    .site-nav,
    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link,
    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .wrap, .footer-inner, .legal-shell {
        width: min(calc(100% - 20px), var(--content));
    }

    .legal-card {
        padding: 22px 18px;
        border-radius: 22px;
    }
}
