/* ============================================
   CONTENT PAGES — about.html, privacy.html, terms.html
   Same tokens as index.html; language toggle and nebula background
   come from lang-toggle.css and nebula-bg.css.
   ============================================ */
:root {
    --blue:       #1475df;
    --blue-light: #4da3ff;
    --teal:       #16c6bd;
    --orange:     #ff7b24;
    --body-bg:    #061423;
    --text-muted: #cbd5e1;
    --text-dim:   #94a3b8;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; max-width: 100vw; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

.skip-link { position: absolute; top: -40px; left: 0; background: #16c6bd; color: white; padding: 8px 16px; text-decoration: none; z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 0; }

.site-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(6, 20, 35, 0.92);
    border: 1px solid rgba(20, 117, 223, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 0;
    box-shadow: 0 0 18px rgba(20, 117, 223, 0.45), 0 0 40px rgba(22, 198, 189, 0.18);
}
.site-logo img { display: block; height: 56px; width: auto; max-width: none; }
@media (max-width: 480px) { .site-logo img { height: 46px; } }

#main-content { position: relative; z-index: 1; transition: opacity 150ms ease-out, filter 150ms ease-out; }

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 1.5rem 2rem;
}
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover, .back-link:focus-visible { color: var(--teal); }
.legal h1 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.legal .updated { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 2rem; }
.legal .updated:empty { display: none; }
.legal h1 + .updated:empty + .legal-body h2:first-child { margin-top: 1.5rem; }
.legal-body h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue-light);
    margin: 2rem 0 0.6rem;
}
.legal-body p, .legal-body li { font-size: 0.9375rem; color: var(--text-muted); }
.legal-body p { margin-bottom: 0.9rem; }
.legal-body ul { margin: 0 0 0.9rem 1.25rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(22, 198, 189, 0.3); transition: color 0.2s, border-color 0.2s; }
.legal-body a:hover { color: #fff; border-color: var(--teal); }
.placeholder { color: var(--orange); font-weight: 600; }
@media (min-width: 768px) { .legal h1 { font-size: 2.5rem; } }

/* Footer — same look as the index.html footer */
.site-footer { margin-top: 3rem; padding: 2.5rem 2rem; border-top: 1px solid rgba(20, 117, 223, 0.2); text-align: center; position: relative; z-index: 1; background: var(--body-bg); }
.footer-inner { max-width: 880px; margin: 0 auto; }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: start; }
.footer-col:first-child { text-align: left; }
.footer-col:first-child .footer-contact-list { align-items: flex-start; }
.footer-col:last-child { text-align: right; }
.footer-col:last-child .footer-contact-list { align-items: flex-end; }
.footer-center { text-align: center; }
.footer-locations { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 1.25rem; line-height: 1.7; }
.footer-locations-line { display: block; white-space: nowrap; font-size: 0.8125rem; }
.footer-contact-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.9rem; }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; margin-bottom: 1.75rem; }
.footer-contact-list li { font-size: 0.8125rem; color: var(--text-muted); }
.footer-contact-list a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(22, 198, 189, 0.3); transition: color 0.2s, border-color 0.2s; }
.footer-contact-list a:hover { color: #fff; border-color: var(--teal); }
.footer-copyright { font-size: 0.75rem; color: var(--text-dim); opacity: 0.7; }
@media (max-width: 600px) {
    .footer-row { grid-template-columns: 1fr 1fr; }
    .footer-center { grid-column: 1 / -1; order: 3; }
    .footer-locations-line { font-size: 0.625rem; }
}
