/* Public "home" pages (currently just the privacy policy).
   Bootstrap handles layout/grid; this file only carries the console's own colour
   scheme - the sidebar navy plus the sky-blue accent - onto a page that does not
   load console.css. Kept separate on purpose: a public page should not inherit
   the console's app-shell classes (.card, .badge, .sidebar, ...) by accident. */

:root {
    --home-navy: #0b0f17;
    --home-navy-soft: #141b2b;
    --home-primary: #1d6ff2;
    --home-primary-dark: #1559c9;
    --home-sky: #0ea5e9;
    --home-sky-soft: #e6f6fe;
    --home-page: #f6f9fc;
    --home-surface: #ffffff;
    --home-border: #e3e8f0;
    --home-text: #0c1220;
    --home-muted: #5b6472;
    --home-font: "Poppins", sans-serif;
}

body.home {
    margin: 0;
    background: var(--home-page);
    color: var(--home-text);
    font-family: var(--home-font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* :where() keeps this at the same specificity as a single class (e.g. .home-nav__cta)
   further down the file, so those component styles win by source order instead of
   losing to this default - without :where() every one-class link/button color here
   was silently overridden back to the default link blue. */
.home :where(a) { color: var(--home-primary); text-decoration: none; }
.home :where(a):hover { color: var(--home-primary-dark); }

/* ---------- Nav ---------- */

.home-nav {
    background: var(--home-navy);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.home-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}

.home-nav__brand:hover { color: #fff; }

.home-nav__link {
    color: #98a1b3;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 4px;
}

.home-nav__link:hover,
.home-nav__link.is-active {
    color: #fff;
}

.home-nav__cta {
    background: var(--home-sky);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

.home-nav__cta:hover {
    background: #38bdf8;
    color: #fff;
}

/* Custom toggler: an inline SVG (currentColor) instead of Bootstrap's default
   background-image icon, which ships at 55% white opacity and reads as barely-there
   against this dark navbar. */
.home-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease;
}

.home-nav__toggle:hover { background: rgba(255, 255, 255, .12); }

.home-nav__toggle:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .35);
    outline: none;
}

.home-nav__toggle svg { display: block; }

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

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--home-navy) 0%, var(--home-navy-soft) 60%, #16233d 100%);
    color: #fff;
    padding: 72px 0 88px;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .35), transparent 70%);
    pointer-events: none;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-sky);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, .14);
    border: 1px solid rgba(14, 165, 233, .35);
    padding: 6px 14px;
    border-radius: 999px;
}

.home-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    margin: 18px 0 14px;
}

.home-hero__lede {
    color: #c3cbdb;
    font-size: 17px;
    max-width: 640px;
    margin: 0 0 22px;
}

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 13px;
    color: #98a1b3;
}

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

/* ---------- Body layout ---------- */

.home-body {
    padding: 56px 0 72px;
}

/* Table of contents - sticky on desktop, a plain stack on mobile since there is
   no room to pin a rail beside the content once columns stack full-width. */
.home-toc {
    position: sticky;
    top: 92px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-top: 4px solid var(--home-sky);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(12, 18, 32, .04);
}

.home-toc__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-muted);
    margin-bottom: 10px;
}

.home-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-toc__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--home-text);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 8px;
    border-radius: 8px;
}

.home-toc__list a:hover {
    background: var(--home-sky-soft);
    color: var(--home-primary-dark);
}

.home-toc__list svg { flex: 0 0 auto; color: var(--home-sky); }

/* ---------- Policy sections ---------- */

.home-policy {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-top: 4px solid var(--home-sky);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(12, 18, 32, .04), 0 4px 14px rgba(12, 18, 32, .04);
    padding: 8px 32px;
}

.home-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--home-border);
    scroll-margin-top: 88px;
}

.home-section:last-child { border-bottom: none; }

.home-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--home-sky-soft);
    color: var(--home-primary);
    font-weight: 700;
    font-size: 13px;
    margin-right: 10px;
}

.home-section h2 {
    display: flex;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
}

.home-section p { color: var(--home-text); margin: 0 0 12px; }
.home-section p:last-child { margin-bottom: 0; }

.home-section ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.home-section li { margin-bottom: 6px; }

.home-callout {
    background: var(--home-sky-soft);
    border: 1px solid #bfe6fb;
    border-left: 4px solid var(--home-sky);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #0c4a6e;
    margin: 0 0 14px;
}

/* Cookie table */
.home-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    margin-bottom: 14px;
}

.home-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.home-table th {
    text-align: left;
    background: var(--home-page);
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid var(--home-border);
}

.home-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--home-border);
    vertical-align: top;
}

.home-table tr:last-child td { border-bottom: none; }
.home-table code {
    background: var(--home-sky-soft);
    color: var(--home-primary-dark);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12.5px;
}

/* Contact card closing out the policy */
.home-contact {
    background: linear-gradient(135deg, var(--home-navy), var(--home-navy-soft));
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.home-contact h2 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.home-contact p { color: #c3cbdb; margin-bottom: 18px; }

.home-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--home-sky);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
}

.home-contact__btn:hover { background: #38bdf8; color: #fff; }

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

.home-footer {
    background: var(--home-navy);
    color: #98a1b3;
    padding: 44px 0 24px;
    font-size: 13.5px;
}

.home-footer__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.home-footer__blurb { color: #8b93a5; max-width: 360px; margin: 0; }

.home-footer__heading {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.home-footer__links { list-style: none; margin: 0; padding: 0; }
.home-footer__links li { margin-bottom: 8px; }
.home-footer__links a { color: #98a1b3; overflow-wrap: anywhere; }
.home-footer__links a:hover { color: var(--home-sky); }
.home-footer__muted { color: #8b93a5; }

.home-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 32px;
    padding-top: 18px;
    font-size: 12.5px;
    color: #6b7488;
}

@media (max-width: 767.98px) {
    .home-policy { padding: 4px 18px; }
    .home-toc { position: static; }
    .home-hero { padding: 52px 0 64px; }
    .home-contact { padding: 24px; }

    /* The collapsed menu: a plain list of rows under a hairline divider, not a second
       card nested inside the navbar - a filled box around a single "Privacy Policy" row
       read as an odd, oversized button next to the CTA pill underneath it. */
    .home-nav .navbar-collapse {
        margin-top: 16px;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .home-nav .navbar-nav { gap: 0; }

    .home-nav__link {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        border-left: 3px solid transparent;
        font-size: 15px;
    }

    .home-nav__link:hover,
    .home-nav__link.is-active {
        color: var(--home-sky);
        border-left-color: var(--home-sky);
        padding-left: 11px;
    }

    .home-nav .nav-item.ms-md-2 {
        margin-top: 16px;
    }

    .home-nav__cta {
        display: block;
        text-align: center;
        padding: 13px 18px;
        font-size: 15px;
    }
}
