/* Nuj legal document pages — shares the type + color system used on the landing page. */

:root {
    --midnight: #06080F;
    --cobalt: #3A8EF0;
    --cobalt-hi: #60B0FF;
    --ink: #FFFFFF;
    --ink-2: #B8C2D6;
    --ink-3: #8A96AE;
    --border-dark: #1E2940;
    --surface: #0C111C;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background-color: var(--midnight);
    background-image: radial-gradient(circle at 50% 0%, #162030 0%, #06080F 45%, #06080F 100%);
    background-attachment: fixed;
    color: var(--ink-2);
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.site-header {
    padding: 32px;
    border-bottom: 1px solid var(--border-dark);
}

.site-header a {
    font-family: 'Urbanist', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--cobalt);
    text-decoration: none;
    display: inline-block;
}

.site-header a:hover { color: var(--cobalt-hi); }

/* ---------- Layout ---------- */

.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

/* ---------- Document nav ---------- */

.doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-dark);
}

.doc-nav a {
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.doc-nav a:hover {
    color: #fff;
    border-color: var(--cobalt);
}

.doc-nav a[aria-current="page"] {
    color: #fff;
    border-color: var(--cobalt);
    background: rgba(58, 142, 240, 0.12);
}

/* ---------- Typography ---------- */

.doc h1 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 20px;
}

.doc h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 56px 0 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border-dark);
}

.doc h1 + h2,
.doc h1 + h3 { border-top: none; padding-top: 0; margin-top: 40px; }

/* The chip and the callout already provide separation; don't stack it. */
.doc-meta + h2,
.callout + h2 { margin-top: 8px; padding-top: 0; border-top: none; }

.doc h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 36px 0 12px;
}

.doc h1 + h3 { color: var(--ink-2); font-size: 17px; font-weight: 700; margin-top: 0; }

.doc p { margin: 0 0 18px; }

.doc strong { color: #fff; font-weight: 600; }

.doc a {
    color: var(--cobalt);
    text-decoration: underline;
    text-decoration-color: rgba(58, 142, 240, 0.4);
    text-underline-offset: 3px;
}

.doc a:hover { color: var(--cobalt-hi); text-decoration-color: currentColor; }

/* The version / effective-date line directly under the title. */
.doc-meta {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ink-3);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 6px 12px;
    margin: 0 0 40px;
}

.doc-meta strong { color: var(--ink-3); font-weight: 400; }

/* The "read this" callout at the top of the Terms. */
.callout {
    background: rgba(58, 142, 240, 0.07);
    border: 1px solid rgba(58, 142, 240, 0.35);
    border-radius: 10px;
    padding: 20px 22px;
    margin: 0 0 40px;
    font-size: 15px;
}

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

/* ---------- Lists ---------- */

.doc ul, .doc ol { margin: 0 0 20px; padding-left: 22px; }

.doc li { margin-bottom: 10px; padding-left: 4px; }

.doc ul li::marker { color: var(--cobalt); }
.doc ol li::marker { color: var(--cobalt); font-variant-numeric: tabular-nums; }

/* ---------- Tables ---------- */

.table-wrap {
    overflow-x: auto;
    margin: 0 0 28px;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    background: var(--surface);
}

.doc table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: 14.5px;
}

.doc th, .doc td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-dark);
    vertical-align: top;
}

.doc tr:last-child td { border-bottom: none; }

.doc th {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(30, 41, 64, 0.5);
    white-space: nowrap;
}

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

.site-footer {
    border-top: 1px solid var(--border-dark);
    padding: 32px;
    font-size: 13px;
    color: var(--ink-2);
    opacity: 0.8;
}

.site-footer .inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.site-footer a { color: inherit; text-decoration: none; transition: color 0.15s; }

.site-footer a:hover { color: #fff; }

.site-footer p { margin: 0; }

@media (max-width: 640px) {
    .site-header { padding: 24px; }
    .site-header a { font-size: 34px; }
    .doc { padding: 40px 20px 72px; }
    .site-footer .inner { justify-content: center; text-align: center; }
}
