/* assets/css/site-chrome.css - The public site's top menu, mobile menu and footer (includes/site_chrome.php) on the
   document pages (FAQ, Privacy, Terms), which use panel.css. The marketing pages carry the same rules inline.
   Colours come from panel.css (the same variables as the marketing pages). */

.legal-body { padding-top: 74px; display: flex; flex-direction: column; min-height: 100vh; }
.legal-body > main.legal { flex: 1; width: 100%; }

/* ===== Top menu ===== */
.top-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 40px; background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
[data-theme="light"] .top-nav { background: rgba(240, 242, 245, 0.9); }
.top-nav .nav-logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.top-nav .nav-logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.top-nav .nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.top-nav .nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); position: relative; transition: var(--transition); }
.top-nav .nav-links a:hover, .top-nav .nav-links a.active { color: var(--text-primary); }
.top-nav .nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient); transition: var(--transition); }
.top-nav .nav-links a:hover::after, .top-nav .nav-links a.active::after { width: 100%; }
.top-nav .nav-actions { display: flex; align-items: center; gap: 12px; }
.top-nav .btn-primary-nav { padding: 10px 24px; border-radius: 50px; background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.top-nav .btn-primary-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4); }
.top-nav .btn-secondary-nav { padding: 8px 18px; border-radius: 50px; color: var(--text-secondary); font-weight: 500; font-size: 13px;
    border: 1px solid var(--border-color); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.top-nav .btn-secondary-nav:hover { border-color: var(--primary); color: var(--text-primary); background: rgba(108, 99, 255, 0.1); }
.top-nav .hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.top-nav .hamburger span { width: 28px; height: 2px; background: var(--text-primary); }

/* ===== Mobile menu ===== */
.sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 280px; background: var(--dark-card); border-right: 1px solid var(--border-color);
    padding: 30px 20px; display: flex; flex-direction: column; z-index: 2000; overflow-y: auto; transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 15px; }
.sidebar.open { transform: translateX(0); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
.sidebar-brand span { font-size: 24px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar-close { margin-left: auto; color: var(--text-secondary); font-size: 24px; padding: 4px 8px; }
.sidebar-close:hover { color: var(--text-primary); }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; color: var(--text-secondary); font-weight: 500; position: relative; }
.sidebar-nav a i { width: 24px; font-size: 18px; text-align: center; }
.sidebar-nav a:hover { background: var(--dark-hover); color: var(--text-primary); }
.sidebar-nav a.active { background: rgba(108, 99, 255, 0.15); color: var(--primary-light); }
.sidebar-nav .nav-divider { height: 1px; background: var(--border-color); margin: 8px 16px; }
.sidebar-footer { padding-top: 20px; border-top: 1px solid var(--border-color); }
.sidebar-footer .btn-primary { padding: 12px 24px; border-radius: 50px; background: var(--gradient); color: #fff; font-weight: 600; display: flex;
    align-items: center; justify-content: center; gap: 8px; width: 100%; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1999; backdrop-filter: blur(4px); }
.sidebar-overlay.active { display: block; }

/* ===== Footer ===== */
footer.site-footer { padding: 30px 60px; border-top: 1px solid var(--border-color); margin-top: 20px; font-size: 14px; }
footer.site-footer .footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site-footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site-footer .footer-links a { color: var(--text-secondary); }
footer.site-footer .footer-links a:hover { color: var(--text-primary); }
footer.site-footer .footer-social { display: flex; gap: 16px; }
footer.site-footer .footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--dark-card); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
footer.site-footer .footer-social a:hover { border-color: var(--primary); color: var(--text-primary); }

@media (max-width: 1100px) { .top-nav .nav-links { gap: 16px; } .top-nav { padding: 14px 24px; } }
@media (max-width: 900px) {
    .top-nav .hamburger { display: flex; }
    .top-nav .nav-links, .top-nav .nav-actions .btn-primary-nav, .top-nav .nav-actions .btn-secondary-nav { display: none; }
    .top-nav { padding: 12px 20px; }
    .legal-body { padding-top: 64px; }
    footer.site-footer { padding: 24px 20px; }
    footer.site-footer .footer-content { flex-direction: column; text-align: center; }
    footer.site-footer .footer-links { justify-content: center; gap: 14px 18px; }
}
@media (min-width: 901px) { .sidebar, .sidebar-overlay { display: none !important; } }
@media print { .top-nav, .sidebar, .sidebar-overlay, footer.site-footer { display: none !important; } .legal-body { padding-top: 0; } }
