/* Amplifier — legal page styles */

:root {
  --navy: #0A1628;
  --navy-light: #1E293B;
  --blue: #1E3A5F;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --cloud: #E2E8F0;
  --snow: #F8FAFC;
  --white: #FFFFFF;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
}

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

body {
  font-family: Inter, -apple-system, system-ui, sans-serif;
  background: var(--navy);
  color: var(--snow);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo svg { width: 120px; height: 24px; }

.nav-back {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.meta {
  font-size: 0.75rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}

.updated {
  color: var(--slate-light);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

p {
  margin: 0.75rem 0;
  color: var(--cloud);
}

ul, ol { margin: 0.5rem 0 1rem 1.5rem; color: var(--cloud); }
li { margin: 0.35rem 0; }
li > strong { color: var(--white); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }

strong { color: var(--white); font-weight: 600; }
em { font-style: italic; color: var(--snow); }

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  color: var(--teal);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--navy-light);
}

/* Legal index cards */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.doc-card {
  display: block;
  padding: 1.5rem;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--snow);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.doc-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  text-decoration: none;
}
.doc-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.doc-card-desc {
  color: var(--slate-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--slate);
  font-size: 0.8rem;
}
footer a { color: var(--slate-light); }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  main { padding: 2rem 1.25rem 4rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  nav { padding: 0 1.25rem; }
}
