@font-face {
    font-family: "Geist";
    src: url("/_legal/fonts/Geist-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Chrobyte brand tokens: #1967AB / #5ECAE7 / #90ADB9, surface #F0F4F7, ink #161616 */
:root {
    --bg: #f0f4f7;
    --bg-elev: #ffffff;
    --ink: #161616;
    --ink-soft: #4d5b68;
    --ink-dim: #90adb9;
    --rule: #dbe4ea;
    --rule-strong: #bccbd5;
    --brand: #1967ab;
    --brand-hover: #14528a;
    --brand-soft: #5ecae7;
    --brand-tint: #e8f1f9;
    --gradient: linear-gradient(90deg, #1967ab 0%, #5ecae7 100%);
    --shadow: 0 1px 0 rgba(22, 22, 22, .04), 0 24px 60px -36px rgba(25, 103, 171, .35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    font-family: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand);
}

    a:hover {
        color: var(--brand-hover);
    }

:focus-visible {
    outline: 2px solid var(--brand-soft);
    outline-offset: 2px;
}

/* Brand signature: the gradient hairline from letterhead and business card, and the wordmark. */
.cb-rule {
    display: block;
    height: 2px;
    border: 0;
    margin: 0;
    background: var(--gradient);
    border-radius: 1px;
}

.cb-wordmark {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Message page */

.message-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.card {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2rem 2.25rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

    .card .brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .card .cb-wordmark {
        font-size: 1rem;
    }

    .card h1 {
        margin: 1.5rem 0 0.25rem;
        font-size: 1.35rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .card .subtitle {
        margin: 0;
        font-size: 0.92rem;
        color: var(--ink-soft);
    }

/* Infos page */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-elev);
}

.topbar-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

    .topbar-brand .brand-mark {
        width: 32px;
        height: 32px;
    }

.topbar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.languages {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.lang {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--ink-soft);
    border: 1px solid transparent;
}

    .lang:hover {
        color: var(--brand);
        border-color: var(--rule-strong);
    }

    .lang.is-current {
        background: var(--ink);
        color: #fff;
    }

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

    .section-nav a {
        padding: 0.4rem 0.9rem;
        border: 1px solid var(--rule-strong);
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--brand);
        background: var(--bg-elev);
    }

        .section-nav a:hover {
            background: var(--brand-tint);
            border-color: var(--brand);
        }

.legal-section {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.5rem 1.75rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

    .legal-section h2 {
        margin: 0 0 1rem;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .legal-section:target h2 {
        color: var(--brand);
    }

/* The texts arrive as HTML fragments authored in the management UI; normalise their spacing. */
.legal-text {
    font-size: 0.95rem;
    color: var(--ink);
}

    .legal-text p {
        margin: 0 0 0.75rem;
    }

    .legal-text p:last-child {
        margin-bottom: 0;
    }

    .legal-text ul {
        margin: 0.5rem 0 0.75rem;
        padding-left: 1.4rem;
    }

    .legal-text li {
        margin-bottom: 0.25rem;
    }

    .legal-text strong {
        font-weight: 600;
    }

.footer {
    text-align: center;
    padding: 0 1.25rem 2.5rem;
}

@media (max-width: 480px) {
    .topbar-inner {
        padding: 0.65rem 1rem;
    }

    .topbar-title {
        font-size: 0.95rem;
    }

    .topbar-subtitle {
        font-size: 0.65rem;
    }

    .content {
        padding: 1rem 0.75rem 2rem;
    }

    .legal-section {
        padding: 1.25rem 1.1rem 1.35rem;
        border-radius: 12px;
    }

    .legal-text {
        font-size: 0.9rem;
    }
}

@media print {
    .topbar,
    .section-nav,
    .footer {
        display: none;
    }

    body {
        background: #fff;
    }

    .legal-section {
        box-shadow: none;
        border: 0;
        padding: 0 0 1.5rem;
        page-break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
