/* ==========================================================================
   Static Page Styles — About, Contact, How We Test, Legal pages
   Uses design system tokens only. No new colors/fonts/spacing.
   ========================================================================== */

/* --- Page container --- */
.tcp-static-page {
  padding: var(--tcp-space-12) 0;
  background: var(--tcp-bg);
}

.tcp-static-page .tcp-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-6);
}

/* --- Header --- */
.tcp-static-header {
  margin-bottom: var(--tcp-space-8);
  padding-bottom: var(--tcp-space-6);
  border-bottom: 2px solid var(--tcp-primary);
}

.tcp-static-header h1 {
  font-size: var(--tcp-fs-h1);
  font-weight: 800;
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-3) 0;
  letter-spacing: -0.02em;
}

.tcp-static-meta {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  font-weight: 500;
}

/* --- Content typography --- */
.tcp-static-content {
  font-size: var(--tcp-fs-base);
  line-height: var(--tcp-lh-body);
  color: var(--tcp-text);
}

.tcp-static-content h2 {
  font-size: var(--tcp-fs-h2);
  font-weight: 700;
  margin: var(--tcp-space-12) 0 var(--tcp-space-4) 0;
  padding-bottom: var(--tcp-space-2);
  border-bottom: 1px solid var(--tcp-border);
  color: var(--tcp-text);
}

.tcp-static-content h2:first-child {
  margin-top: 0;
}

.tcp-static-content h3 {
  font-size: var(--tcp-fs-h3);
  font-weight: 600;
  margin: var(--tcp-space-8) 0 var(--tcp-space-3) 0;
  color: var(--tcp-text);
}

.tcp-static-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: var(--tcp-space-6) 0 var(--tcp-space-2) 0;
  color: var(--tcp-text);
}

.tcp-static-content p {
  margin: 0 0 var(--tcp-space-4) 0;
  max-width: 70ch;
}

.tcp-static-content a {
  color: var(--tcp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.tcp-static-content a:hover {
  color: var(--tcp-primary-dark);
}

/* --- Lists --- */
.tcp-static-content ul,
.tcp-static-content ol {
  margin: 0 0 var(--tcp-space-6) 0;
  padding-left: var(--tcp-space-6);
}

.tcp-static-content li {
  margin-bottom: var(--tcp-space-3);
  line-height: var(--tcp-lh-body);
}

.tcp-static-content li strong {
  color: var(--tcp-text);
}

/* --- Tables --- */
.tcp-static-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--tcp-space-6) 0;
  font-size: var(--tcp-fs-small);
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
  overflow: hidden;
}

.tcp-static-content thead {
  background: var(--tcp-bg-alt);
}

.tcp-static-content th {
  text-align: left;
  padding: var(--tcp-space-3) var(--tcp-space-4);
  font-weight: 600;
  color: var(--tcp-text);
  border-bottom: 2px solid var(--tcp-border);
}

.tcp-static-content td {
  padding: var(--tcp-space-3) var(--tcp-space-4);
  border-bottom: 1px solid var(--tcp-border);
  vertical-align: top;
}

.tcp-static-content tbody tr:nth-child(even) {
  background: var(--tcp-bg-alt);
}

.tcp-static-content tbody tr:last-child td {
  border-bottom: none;
}

/* --- Emphasis blocks (em wrapped in p for phase-2 notices) --- */
.tcp-static-content > p > em:only-child {
  display: block;
  background: var(--tcp-bg-alt);
  border-left: 3px solid var(--tcp-primary);
  padding: var(--tcp-space-4);
  border-radius: 0 6px 6px 0;
  color: var(--tcp-text-muted);
  font-style: italic;
}

/* --- Blockquotes --- */
.tcp-static-content blockquote {
  margin: var(--tcp-space-6) 0;
  padding: var(--tcp-space-4) var(--tcp-space-6);
  border-left: 3px solid var(--tcp-accent);
  background: var(--tcp-bg-alt);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--tcp-text-muted);
}

.tcp-static-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Footer --- */
.tcp-static-footer {
  margin-top: var(--tcp-space-12);
  padding-top: var(--tcp-space-6);
  border-top: 1px solid var(--tcp-border);
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
}

.tcp-static-footer a {
  color: var(--tcp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .tcp-static-page {
    padding: var(--tcp-space-8) 0;
  }

  .tcp-static-page .tcp-container {
    padding: 0 var(--tcp-space-4);
  }

  .tcp-static-header h1 {
    font-size: 1.75rem;
  }

  .tcp-static-content h2 {
    font-size: 1.5rem;
    margin-top: var(--tcp-space-8);
  }

  .tcp-static-content h3 {
    font-size: 1.25rem;
  }

  .tcp-static-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
