/* Shared styles for Tradebrary legal pages — matches index.html theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav .container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 80px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }

/* Legal content */
.legal { max-width: 820px; margin: 0 auto; padding: 150px 24px 80px; }
.legal h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.legal .updated { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 40px 0 14px; color: var(--white); }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--light); }
.legal p { color: #cbd5e1; margin-bottom: 14px; }
.legal ul, .legal ol { color: #cbd5e1; margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--white); }

/* Callout box for important notices */
.notice {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}
.notice.warning { border-left-color: #f59e0b; }
.notice p:last-child { margin-bottom: 0; }

/* Uppercase legal block (e.g. CFTC / warranty disclaimers) */
.legal-block {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Footer */
footer { background: #0a0f1d; border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 0; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.copyright { color: var(--gray); font-size: 0.9rem; margin-top: 24px; text-align: center; }

@media (max-width: 640px) {
    .legal { padding-top: 130px; }
    .legal h1 { font-size: 1.75rem; }
    .nav-links { display: none; }
}
