/* =============================================================
   XAVIGATE-DARK-TEMPLATE-V.01
   Self-contained dark template for xavigate.com content pages.
   Do NOT load styles.css alongside this — it will conflict.

   Usage: <link rel="stylesheet" href="design-system/templates/xavigate-dark-v01.css">
   Source: xavigate-site/design-system/templates/
   ============================================================= */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
body {
    background: #080D1C;
    color: #E8EDF6;
    font-family: -apple-system, 'Inter', BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

p + p { margin-top: 0.6em; }

/* ── SKIP LINK ── */
.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: #080D1C; color: #fff;
    padding: 8px 16px; border-radius: 6px;
    font-size: 1rem; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ── NAV ── */
.nav {
    background: rgba(8,13,28,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 16px 0;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 48px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
}
.logo { font-size: 1.05rem; font-weight: 700; }
.logo a {
    text-decoration: none; color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.logo a svg { color: #7C9BFF; flex-shrink: 0; }
.nav-links {
    display: flex; list-style: none;
    gap: 28px; white-space: nowrap; align-items: center;
}
.nav-links a {
    color: #8A97B8; text-decoration: none;
    font-size: 14px; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links .active { color: #fff; font-weight: 600; }
.nav-toggle {
    display: none; flex-direction: column;
    gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: #E8EDF6; transition: all .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ── PAGE TITLE ── */
.page-title {
    padding: 100px 0 48px;
    text-align: center;
    position: relative; z-index: 1;
}
.page-title h1 {
    font-size: 2.5rem; font-weight: 800;
    color: #fff; letter-spacing: -0.5px;
}
.page-title p {
    max-width: 600px; margin: 12px auto 0;
    color: #8A97B8; font-size: 1.05rem; line-height: 1.6;
}

/* ── PROSE READING WIDTH ──
   Apply class="prose" to any content wrapper that holds running text.
   The outer .container stays at 1100px — only the text column narrows.
   Wide design elements (cards, grids, tables) sit outside .prose or override it. */
.prose {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

/* ── CONTENT ── */
.page-content,
.contact-section {
    background: #080D1C;
    position: relative; z-index: 1;
    padding-bottom: 80px;
}
.page-content h2 { color: #fff; margin-top: 2.5em; font-size: 1.25rem; }
.page-content h3 { color: #E8EDF6; margin-top: 1.8em; font-size: 1rem; }
.page-content p,
.page-content li { color: #C8D0E0; line-height: 1.75; }
.page-content strong { color: #E8EDF6; }
.page-content a { color: #7C9BFF; }
.page-content a:hover { color: #38BDF8; }
.page-content ul,
.page-content ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.page-content li { margin-bottom: 0.4em; }

/* ── LEGAL COMPONENTS ── */
.terms-meta, .privacy-meta {
    color: #8A97B8; font-size: 0.875rem; margin-bottom: 2em;
}
.terms-toc, .privacy-toc {
    background: rgba(255,255,255,0.04);
    padding: 1.5em 2em; border-radius: 10px;
    margin-bottom: 2.5em; border: 1px solid rgba(255,255,255,0.08);
}
.terms-toc h3, .privacy-toc h3 { margin-top: 0; color: #E8EDF6; }
.terms-toc ol, .privacy-toc ol { margin-bottom: 0; }
.terms-toc a, .privacy-toc a { text-decoration: none; color: #7C9BFF; }
.terms-toc a:hover, .privacy-toc a:hover { text-decoration: underline; color: #38BDF8; }
.legal-highlight {
    background: rgba(76,110,245,0.1); padding: 1em 1.5em;
    border-left: 3px solid #4C6EF5; margin: 1.2em 0;
    border-radius: 0 8px 8px 0;
}
.legal-highlight p { margin: 0; color: #C8D0E0; }
.data-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.data-table th, .data-table td {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.6em 0.8em; text-align: left;
    font-size: 0.875rem; color: #C8D0E0;
}
.data-table th { background: rgba(255,255,255,0.06); font-weight: 600; color: #E8EDF6; }
.table-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── CONTACT FORM ── */
.contact-content { color: #8A97B8; margin-bottom: 2rem; text-align: center; }
.contact-form-wrap { max-width: 600px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-form label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: #8A97B8; margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px 16px; font-size: 1rem; font-family: inherit;
    color: #E8EDF6; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
.contact-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A97B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    cursor: pointer;
}
.contact-form select option { background: #0F1628; color: #E8EDF6; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: #4C6EF5;
    box-shadow: 0 0 0 3px rgba(76,110,245,0.2);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8A97B8; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form-submit { margin-top: 0.5rem; }
.cta-primary {
    background: #4C6EF5; color: #fff; border: none;
    padding: 12px 28px; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.cta-primary:hover { opacity: 0.85; }
.contact-form-status { padding: 14px 18px; border-radius: 8px; font-size: 1rem; display: none; }
.contact-form-status.success { background: rgba(52,211,153,0.1); border: 1px solid #34D399; color: #34D399; }
.contact-form-status.error { background: rgba(248,113,113,0.1); border: 1px solid #F87171; color: #F87171; }
.contact-info-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; }
.contact-info-block p { font-size: 0.875rem; color: #8A97B8; line-height: 1.7; margin: 0; }
.contact-info-block a { color: #7C9BFF; }

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #080D1C;
    position: relative; z-index: 1;
}
.footer-top {
    display: flex; gap: 64px;
    padding-top: 56px; padding-bottom: 48px;
    align-items: flex-start;
}
.footer-brand { flex: 0 0 260px; }
.footer-brand p { font-size: 13px; color: #8A97B8; line-height: 1.7; margin-top: 4px; }
.footer-cols { display: flex; gap: 48px; flex: 1; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #fff; margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: #8A97B8; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 20px; padding-bottom: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px; color: #8A97B8;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #8A97B8; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(8,13,28,0.97);
        flex-direction: column; gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        display: none;
    }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 10px 48px; }
}
@media (max-width: 960px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-brand { flex: none; }
    .footer-cols { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .page-title h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
    .nav-links li { padding: 10px 20px; }
    .footer-cols { flex-wrap: wrap; gap: 32px; }
    .page-title h1 { font-size: 1.75rem; }
}
