:root {
    --luminera-navy: #06111f;
    --luminera-panel: #0b1b2e;
    --luminera-blue: #168cff;
    --luminera-cyan: #22d3ee;
    --luminera-lime: #a3e635;
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(22, 140, 255, 0.12), transparent 26rem),
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.06), transparent 22rem),
        #020817;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 8, 23, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: white;
    text-decoration: none;
}

.brand-word {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.2rem;
    height: 1.7rem;
}

.brand-mark span {
    display: block;
    width: 0.32rem;
    border-radius: 999px;
}

.brand-mark span:nth-child(1) {
    height: 1.7rem;
    background: #22d3ee;
}

.brand-mark span:nth-child(2) {
    height: 1.15rem;
    background: #3b82f6;
}

.brand-mark span:nth-child(3) {
    height: 0.7rem;
    background: #a3e635;
}

.public-nav-link {
    position: relative;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 650;
}

.public-nav-link:hover,
.public-nav-link.active {
    color: #ffffff;
}

.public-nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.65rem;
    height: 2px;
    border-radius: 999px;
    background: #168cff;
}

.public-cta {
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #168cff;
    padding: 0.75rem 1.1rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(22, 140, 255, 0.18);
}

.public-cta:hover {
    transform: translateY(-1px);
    background: #0879e9;
}

.mobile-menu-button {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
    padding: 0.65rem;
}

.mobile-menu-button span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 0.25rem 0;
    border-radius: 999px;
    background: #cbd5e1;
}

.mobile-menu {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 8, 23, 0.98);
}

.mobile-menu a {
    display: block;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding: 0.95rem 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 650;
}

.mobile-menu .mobile-cta {
    margin-top: 0.8rem;
    border: 0;
    border-radius: 0.75rem;
    background: #168cff;
    padding: 0.9rem 1rem;
    text-align: center;
    color: white;
}

.public-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.09);
    background: #020713;
}

.public-footer a:hover {
    color: #93c5fd;
}

.footer-heading {
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    background:
        linear-gradient(120deg, rgba(6, 17, 31, 0.98), rgba(6, 17, 31, 0.76)),
        radial-gradient(circle at 80% 10%, rgba(22, 140, 255, 0.2), transparent 28rem);
}

.eyebrow {
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.content-panel {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(11, 27, 46, 0.54);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.blue-rule {
    width: 4rem;
    height: 0.24rem;
    border-radius: 999px;
    background: #168cff;
}

.document-cover {
    aspect-ratio: 1.42 / 1;
    width: 100%;
    object-fit: cover;
    object-position: center;
}


/* v0.11 Phase 1: legal centre and approved document pages */
.legal-layout {
    display: grid;
    gap: 2rem;
}

.legal-toc {
    align-self: start;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(11, 27, 46, 0.54);
    padding: 1.25rem;
}

.legal-toc nav {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.legal-toc a {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.45;
}

.legal-toc a:hover {
    color: #93c5fd;
}

.legal-document {
    min-width: 0;
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 3vw, 3rem);
}

.legal-section {
    scroll-margin-top: 7rem;
    padding-bottom: 2.25rem;
}

.legal-section + .legal-section {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 2.25rem;
}

.legal-section h2 {
    color: #f8fafc;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
    color: #cbd5e1;
    font-size: 0.97rem;
    line-height: 1.9;
}

.legal-section p {
    margin-top: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 0 1.3rem;
}

.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li + li { margin-top: 0.55rem; }

.legal-section strong { color: #f8fafc; }

.legal-table-wrap {
    margin-top: 1.25rem;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.9rem;
}

.legal-table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.legal-table th,
.legal-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.legal-table th {
    background: rgba(22, 140, 255, 0.09);
    color: #f8fafc;
    font-weight: 800;
}

.legal-table td { color: #cbd5e1; }
.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.legal-card h2,
.legal-resource-card h3 {
    margin-top: 0.65rem;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 800;
}

.legal-card p,
.legal-resource-card p {
    margin-top: 0.75rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.legal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.legal-card-actions a,
.legal-resource-card a {
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 750;
}

.legal-resource-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(11, 27, 46, 0.45);
    padding: 1.25rem;
}

.legal-resource-card a {
    display: inline-flex;
    margin-top: 1rem;
}

.quote-checkbox small a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 16rem minmax(0, 1fr);
        align-items: start;
    }

    .legal-toc {
        position: sticky;
        top: 6.5rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}


/* v0.11 Phase 5: keyboard access, visible focus and reduced motion */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9999;
    transform: translateY(-180%);
    border: 2px solid #67e8f9;
    border-radius: 0.75rem;
    background: #020617;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 3px;
    border-radius: 0.35rem;
}

#main-content:focus { outline: none; }
[aria-current="page"] { color: #ffffff; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
