/* XAgencyFlow — shared styles for legal pages
   Editorial Atelier · coal · cream · sulfur */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter+Tight:wght@300..700&family=JetBrains+Mono:wght@300..500&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0a0907; color: #ebe3d1; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-feature-settings: 'ss01', 'cv05';
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

::selection { background: #d4ee00; color: #0a0907; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0907; }
::-webkit-scrollbar-thumb { background: #1c1812; }

a { color: #ebe3d1; text-decoration: none; transition: color 0.3s; }
a:hover { color: #d4ee00; }

.ital { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.fraunces { font-family: 'Fraunces', Georgia, serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
.sulfur { color: #d4ee00; }
.dim { color: rgba(235, 227, 209, 0.55); }
.ghost { color: rgba(235, 227, 209, 0.35); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #d4ee00; animation: pulseDot 2.4s ease-in-out infinite; display: inline-block; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 1rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 9, 7, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(235, 227, 209, 0.05);
}
.nav-brand { display: flex; align-items: baseline; gap: 0.5rem; }
.nav-brand .x { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.5rem; }
.nav-brand .name { font-size: 0.9rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a, .nav-links button {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: rgba(235, 227, 209, 0.65);
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-links a:hover, .nav-links button:hover { color: #ebe3d1; }
.btn-primary {
    background: #d4ee00; color: #0a0907 !important;
    padding: 0.7rem 1.2rem;
    font-family: 'Inter Tight', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-primary:hover { background: #ebff42; color: #0a0907 !important; }

/* ========== LEGAL PAGE LAYOUT ========== */
.legal-page { max-width: 920px; margin: 0 auto; padding: 8rem 2rem 4rem; }

.legal-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(235, 227, 209, 0.10);
}
.legal-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.32em;
    color: rgba(235, 227, 209, 0.55);
    margin-bottom: 1.5rem;
}
.legal-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #ebe3d1;
}
.legal-title .ital { color: #d4ee00; }
.legal-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(235, 227, 209, 0.45);
}

.legal-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 3.5rem 0 1rem;
    color: #ebe3d1;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(235, 227, 209, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 0.4rem;
}
.legal-content h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin: 2rem 0 0.5rem;
    color: #ebe3d1;
}
.legal-content p, .legal-content li {
    color: rgba(235, 227, 209, 0.8);
    margin: 0.7rem 0;
}
.legal-content ul, .legal-content ol { padding-left: 1.25rem; }
.legal-content li { margin: 0.5rem 0; }
.legal-content strong { color: #ebe3d1; font-weight: 500; }
.legal-content a { color: #d4ee00; border-bottom: 1px solid rgba(212, 238, 0, 0.3); }
.legal-content a:hover { border-bottom-color: #d4ee00; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}
.legal-content th, .legal-content td {
    border-bottom: 1px solid rgba(235, 227, 209, 0.10);
    padding: 0.85rem 0.5rem;
    text-align: left;
    vertical-align: top;
}
.legal-content th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(235, 227, 209, 0.45);
    font-weight: 400;
}

.legal-content .placeholder {
    background: rgba(212, 238, 0, 0.08);
    color: #d4ee00;
    padding: 0.1rem 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

.legal-block {
    background: #13110d;
    border: 1px solid rgba(235, 227, 209, 0.10);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.legal-block p { margin: 0.4rem 0; }

/* ========== FOOTER ========== */
.footer {
    padding: 5rem 2.5rem 2rem;
    border-top: 1px solid rgba(235, 227, 209, 0.10);
    margin-top: 4rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}
.footer-cols h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: rgba(235, 227, 209, 0.4);
    margin: 0 0 1rem; font-weight: 400;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0.5rem 0; }
.footer-cols a { font-size: 0.9rem; color: rgba(235, 227, 209, 0.8); }
.footer-cols a:hover { color: #d4ee00; }
.footer-brand .x { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.8rem; }
.footer-brand .name { font-size: 0.95rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(235, 227, 209, 0.6); margin: 1rem 0 0; max-width: 280px; }
.footer-bottom {
    border-top: 1px solid rgba(235, 227, 209, 0.10);
    padding-top: 1.75rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(235, 227, 209, 0.45);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav { padding: 0.85rem 1.25rem; }
    .nav-links { gap: 0.85rem; }
    .nav-links a:not(.btn-primary) { display: none; }
    .legal-page { padding: 6rem 1.25rem 3rem; }
    .legal-title { font-size: 2.25rem; }
    .legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; }
    .footer { padding: 3rem 1.25rem 1.5rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: span 2; }
}
