/* Shared styles for secondary pages (features, legal, 404).
   Requires variables.css to be loaded first. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background: var(--dark-bg);
  color: rgba(224, 224, 224, 1);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site header (matches homepage brand) ── */

.site-header {
  background: var(--dark-panel);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
  margin: 0;
}

.site-header .brand-name .highlight {
  color: var(--neon-pink);
}

.site-header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.site-header-nav a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.site-header-nav a:hover {
  color: var(--neon-cyan);
}

/* ── Site footer (matches homepage) ── */

.site-footer {
  background: var(--dark-panel);
  border-top: 1px solid var(--dark-border);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.site-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-links a:hover {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.site-footer p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.75rem;
}

/* ── Page content container ── */

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2; color: var(--text-primary); }
h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--neon-cyan); }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
p, li { font-size: 0.95rem; color: rgba(153, 153, 153, 1); }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border: 1px solid var(--dark-border);
}

/* ── Utility ── */

.muted { color: rgba(153, 153, 153, 1); font-size: 0.9rem; }
.lead { font-size: 1.05rem; color: rgba(224, 224, 224, 1); margin-bottom: 1.5rem; }

.doc-figure {
  margin: 1.25rem 0 1.5rem;
}

.doc-figure figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.doc-img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.doc-img-sm { max-width: 420px; }
.doc-img-md { max-width: 640px; }
.doc-img-lg { max-width: 860px; }

.doc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.25rem 0;
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .page-content { padding: 1.5rem 1rem 3rem; }
  .site-header { padding: 0.6rem 1rem; }
  .site-header-nav { gap: 0.75rem; font-size: 0.8rem; }
  .doc-grid { grid-template-columns: 1fr; }
}
