/* AGBO Interactive — shared stylesheet */

:root {
    --bg: #0a0a0a;
    --bg-elev: #121212;
    --fg: #f5f5f5;
    --fg-muted: #9a9a9a;
    --fg-dim: #6b6b6b;
    --rule: #1f1f1f;
    --accent: #ffffff;
    --max-width: 1120px;
    --content-width: 760px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--fg-dim);
    transition: border-color 160ms ease, color 160ms ease;
}

a:hover,
a:focus {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border-bottom: none;
    color: var(--fg);
}

.brand:hover,
.brand:focus {
    color: var(--accent);
    border-bottom: none;
}

.brand__logo {
    display: block;
    height: 36px;
    width: auto;
}

.brand__sub {
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--fg-muted);
    text-transform: uppercase;
    line-height: 1;
}

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

.site-nav a {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-muted);
    border-bottom: none;
    padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
    color: var(--fg);
    border-bottom: 1px solid var(--fg);
}

/* ---------- Main ---------- */

main {
    flex: 1 0 auto;
    width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.container--narrow {
    max-width: var(--content-width);
    /* Anchor left edge to match .container's inner-left on wide viewports
       instead of centering, so content aligns vertically with the hero. */
    margin-left: max(0px, calc((100% - var(--max-width)) / 2));
    margin-right: auto;
}

/* ---------- Hero ---------- */

.hero {
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    max-width: 900px;
}

.hero__lede {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 680px;
    margin: 0;
}

/* ---------- Content sections ---------- */

section {
    padding: 64px 0;
    border-bottom: 1px solid var(--rule);
}

section:last-of-type {
    border-bottom: none;
}

.section__label {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin: 0 0 24px;
}

.section__title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 0 0 24px;
}

.section__body p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg-muted);
    max-width: 680px;
}

.section__body p + p {
    margin-top: 18px;
}

/* ---------- Legal / document pages ---------- */

.doc {
    padding: 64px 0 96px;
}

.doc__eyebrow {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin: 0 0 16px;
}

.doc__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.doc__updated {
    font-size: 14px;
    color: var(--fg-dim);
    margin: 0 0 56px;
}

.doc h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 56px 0 16px;
    color: var(--fg);
}

.doc h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--fg);
}

.doc p {
    margin: 0 0 16px;
    color: var(--fg-muted);
    font-size: 16px;
    line-height: 1.75;
}

.doc ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--fg-muted);
}

.doc li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.doc .callout {
    font-style: italic;
    color: var(--fg);
    border-left: 2px solid var(--fg-dim);
    padding: 2px 0 2px 16px;
    margin: 0 0 16px;
}

.doc .toc {
    border: 1px solid var(--rule);
    padding: 24px 28px;
    margin: 24px 0 40px;
    background: var(--bg-elev);
}

.doc .toc ol {
    margin: 0;
    padding-left: 24px;
    color: var(--fg-muted);
}

.doc .toc li {
    margin-bottom: 6px;
    font-size: 15px;
}

.doc address {
    font-style: normal;
    color: var(--fg-muted);
    line-height: 1.7;
    margin: 16px 0;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 48px 0 56px;
    margin-top: auto;
    background: var(--bg);
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.site-footer__brand {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.22em;
    color: var(--fg);
}

.site-footer__meta {
    font-size: 13px;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
}

.site-footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__links a {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-muted);
    border-bottom: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: var(--fg);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .site-header__inner {
        padding: 20px 20px;
        gap: 16px;
    }

    .site-nav {
        gap: 18px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 56px 0 48px;
    }

    section {
        padding: 48px 0;
    }

    .doc {
        padding: 48px 0 64px;
    }

    .site-footer__inner {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
