:root {
    --bg: #220135;
    --bg-deep: #190028;
    --surface: #2E0F45;
    --surface-raised: #3A1A56;
    --surface-alt: #1B0630;
    --border: #4A2468;
    --border-subtle: #362052;
    --text-primary: #F0ECF3;
    --text-secondary: #BEB0CE;
    --text-tertiary: #8A7A9C;
    --accent: #C4A882;
    --accent-soft: #D4BC9A;
    --accent-dim: rgba(196, 168, 130, 0.1);
    --accent-glow: rgba(196, 168, 130, 0.08);
    --accent-hover: #DCC9A8;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.7; font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; }

/* ═══════════════════════════════════════════
   A+B HYBRID: MESH CONSTELLATION
   Warm organic blobs as atmosphere,
   particle network as structure.
   The blobs are the weather. The nodes
   are the infrastructure inside it.
   ═══════════════════════════════════════════ */

/* ── Layer 1: Mesh gradient atmosphere ── */
.mesh-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: meshFloat 20s ease-in-out infinite;
}

.mesh-blob:nth-child(1) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #6B2FA0 0%, transparent 70%);
    top: -10%; right: -5%;
}

.mesh-blob:nth-child(2) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 30%; left: -10%;
    animation-delay: -7s;
    opacity: 0.05;
}

.mesh-blob:nth-child(3) {
    width: 700px; height: 700px;
    background: radial-gradient(circle, #4A1A7A 0%, transparent 70%);
    bottom: -15%; right: 20%;
    animation-delay: -13s;
    opacity: 0.08;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.03); }
}

/* ── Layer 2: Constellation canvas ── */
.constellation-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Layer 3: Floating orbs (from A) ── */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orb-gold {
    width: 5px; height: 5px;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(196, 168, 130, 0.35), 0 0 48px rgba(196, 168, 130, 0.08);
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-glass {
    width: 80px; height: 80px;
    border: 1px solid rgba(196, 168, 130, 0.06);
    background: radial-gradient(circle at 30% 30%, rgba(196, 168, 130, 0.03), transparent);
    backdrop-filter: blur(1px);
    animation: orbDrift 18s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-25px); opacity: 0.9; }
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(12px, -18px) rotate(120deg); }
    66% { transform: translate(-8px, 10px) rotate(240deg); }
}

/* ── Layer 4: Circuit paths (from B) ── */
.circuit-path {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
}

.circuit-path line {
    stroke: var(--accent);
    stroke-width: 0.8;
    stroke-dasharray: 6 14;
    animation: dashFlow 3s linear infinite;
}

.circuit-path circle { fill: var(--accent); opacity: 0.7; }

@keyframes dashFlow { to { stroke-dashoffset: -40; } }

/* ── Node dots ── */
.node-dot {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: nodePulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── Crosshairs ── */
.crosshair {
    position: absolute;
    width: 16px; height: 16px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.crosshair::before { width: 1px; height: 100%; left: 50%; }
.crosshair::after { width: 100%; height: 1px; top: 50%; }

/* ── Section mesh blurs ── */
.section-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.05;
    pointer-events: none;
}

/* ── Capability hybrid effects ── */
.capability {
    position: relative;
    overflow: hidden;
}

/* Gradient glow from A */
.capability::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(196, 168, 130, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.capability:hover::before { opacity: 1; }

/* Corner brackets from B */
.capability::after {
    content: '';
    position: absolute;
    bottom: 8px; right: 8px;
    width: 12px; height: 12px;
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    opacity: 0;
    transition: opacity 0.4s;
}

.capability:hover::after { opacity: 0.4; }

.cap-bracket {
    position: absolute;
    top: 8px; left: 8px;
    width: 12px; height: 12px;
    border-left: 1px solid var(--accent);
    border-top: 1px solid var(--accent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.capability:hover .cap-bracket { opacity: 0.4; }

/* ═══ BASE LAYOUT ═══ */

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: calc(1.5rem + env(safe-area-inset-top)) calc(3rem + env(safe-area-inset-right)) 1.5rem calc(3rem + env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(20px) saturate(1.2); background: rgba(34, 1, 53, 0.88); border-bottom: 1px solid var(--border-subtle); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
nav.scrolled { padding: calc(1rem + env(safe-area-inset-top)) calc(3rem + env(safe-area-inset-right)) 1rem calc(3rem + env(safe-area-inset-left)); background: rgba(25, 0, 40, 0.95); }
.nav-mark { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-primary); text-decoration: none; }
.nav-mark span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; font-weight: 400; position: relative; }
.nav-links a:hover { color: var(--accent); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-links a:hover::after { width: 100%; }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 3rem 6rem; position: relative; background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 60%, var(--surface-alt) 100%); }
.hero-content { max-width: 900px; position: relative; z-index: 2; }
.hero-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; font-weight: 500; opacity: 0; animation: fadeUp 0.8s ease forwards 0.3s; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 2rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(40px) rotateX(15deg); animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(0.5s + var(--i) * 0.08s); }
@keyframes wordReveal { to { opacity: 1; transform: translateY(0) rotateX(0deg); } }
.hero-sub { font-size: 1.15rem; color: var(--text-secondary); max-width: 520px; line-height: 1.8; opacity: 0; animation: fadeUp 0.8s ease forwards 0.7s; }
.hero-line { width: 0; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); margin-top: 3rem; animation: drawLine 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 1.4s; }
@keyframes drawLine { to { width: 120px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.char-reveal { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 40%, rgba(196,168,130,0.4) 50%, var(--accent-hover) 60%, var(--accent) 100%); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes shimmer { 0%, 100% { background-position: 200% center; } 50% { background-position: 0% center; } }

.divider { height: 1px; background: var(--border); margin: 0 3rem; position: relative; overflow: hidden; }
.divider::after { content: ''; position: absolute; top: 0; left: -60%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(196,168,130,0.08), transparent); animation: dividerShimmer 4s ease-in-out infinite; }
@keyframes dividerShimmer { 0% { left: -60%; } 100% { left: 160%; } }

section { padding: 6rem 3rem; position: relative; }
.section-grid { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; max-width: 1100px; position: relative; z-index: 2; }
.section-label { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 0.5rem; position: relative; }
.section-label::after { content: ''; display: block; width: 0; height: 1px; background: var(--accent); margin-top: 1rem; opacity: 0.5; }
.section-content h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; margin-bottom: 1.5rem; color: var(--text-primary); letter-spacing: -0.01em; }
.section-content p { color: var(--text-secondary); margin-bottom: 1.2rem; max-width: 600px; font-size: 0.95rem; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; }
.capability { background: var(--surface); border: 1px solid var(--border-subtle); padding: 2.5rem 2rem; transition: border-color 0.4s, background 0.4s, transform 0.4s, box-shadow 0.4s; }
.capability:hover { background: var(--surface-raised); border-color: var(--border); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.capability:hover .capability-num { color: var(--accent); }
.capability-num { font-size: 0.65rem; color: var(--text-tertiary); letter-spacing: 0.15em; margin-bottom: 1.2rem; transition: color 0.4s; position: relative; z-index: 1; }
.capability h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.8rem; color: var(--text-primary); position: relative; z-index: 1; }
.capability p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; position: relative; z-index: 1; }

.content-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(196,168,130,0.3); transition: border-color 0.3s, color 0.3s, text-shadow 0.3s; }
.content-link:hover { border-color: var(--accent); color: var(--accent-hover); text-shadow: 0 0 12px rgba(196,168,130,0.3); }

.section-coord { font-family: var(--font-body); font-size: 0.5rem; color: var(--text-tertiary); letter-spacing: 0.2em; opacity: 0.35; font-variant-numeric: tabular-nums; margin-top: 1.5rem; }

footer { padding: 3rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; background: var(--bg-deep); position: relative; z-index: 2; }
footer p { font-size: 0.7rem; color: var(--text-tertiary); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.7rem; color: var(--text-tertiary); text-decoration: none; letter-spacing: 0.08em; transition: color 0.3s; position: relative; }
.footer-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-links a:hover::after { width: 100%; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.slide-in { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.slide-in.visible { opacity: 1; transform: translateX(0); }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal-card { opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, background 0.4s, box-shadow 0.4s; transition-delay: calc(var(--ci) * 0.12s); }
.reveal-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal.visible .section-label::after { animation: lineGrow 0.6s cubic-bezier(0.16,1,0.3,1) forwards 0.2s; }
@keyframes lineGrow { to { width: 24px; } }

@media (max-width: 900px) {
    nav { padding: calc(1.2rem + env(safe-area-inset-top)) calc(1.5rem + env(safe-area-inset-right)) 1.2rem calc(1.5rem + env(safe-area-inset-left)); }
    .nav-links { display: none; }
    .hero { padding: 7rem 1.5rem 4rem; }
    section { padding: 4rem 1.5rem; }
    .divider { margin: 0 1.5rem; }
    .section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .capabilities { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
    .constellation-canvas, .mesh-bg { opacity: 0.5; }
    .circuit-path, .crosshair, .orb-glass { display: none; }

    .page-header { padding: 7rem 1.5rem 3rem; }
    .page-header::after { display: none; }
    .legal-body { padding: 2rem 1.5rem 4rem; max-width: 100%; }
    .contact-form { max-width: 100%; }
    .toggle-row { flex-direction: column; gap: 0.8rem; }
}
/* ═══ SUBPAGE STYLES ═══ */

.nav-links a.active {
    color: var(--accent);
}


.page-header {
    padding: 9rem 3rem 4rem;
    position: relative;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.page-header-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.page-header .page-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header .page-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
}

.legal-body {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
}

.legal-body .effective-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
}

.legal-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.legal-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.legal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
}

.legal-body ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.75;
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.legal-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 168, 130, 0.3);
    transition: border-color 0.3s;
}

.legal-body a:hover {
    border-color: var(--accent);
}

.opt-out-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
}

.opt-out-panel h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.opt-out-panel p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-subtle);
}

.toggle-row:first-of-type {
    border-top: none;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toggle-label strong {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-primary);
}

.toggle-label span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--bg);
}

.toggle-essential .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.opt-out-save {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.opt-out-save:hover {
    background: var(--accent-hover);
}

.save-confirm {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.78rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.save-confirm.show {
    opacity: 1;
}

.contact-form {
    max-width: 500px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 500;
    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7A9C' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}

.form-submit {
    padding: 0.85rem 2.5rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: var(--accent-hover);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.form-status.show {
    opacity: 1;
}

footer {
    padding: 3rem calc(3rem + env(safe-area-inset-right)) calc(3rem + env(safe-area-inset-bottom)) calc(3rem + env(safe-area-inset-left));
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-deep);
    position: relative;
    z-index: 2;
}

.nav-links a.active::after {
    width: 100%;
}

/* ── Content link hover glow ── */
.content-link {
    transition: border-color 0.3s, color 0.3s, text-shadow 0.3s;
}

/* ═══ LEGAL TABS ═══ */

.legal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin: 0 auto 3rem;
    max-width: 740px;
    padding: 0 3rem;
}

.legal-tab {
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    position: relative;
}

.legal-tab:hover {
    color: var(--text-secondary);
}

.legal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.active {
    display: block;
}
