/* Code of Conduct — reproduce the legal-page rules from the approved
   SangaiExpress_Prototype_v11.html. Explicit font stacks avoid conflicts
   with differently named font variables in the Go site's global CSS. */

.conduct-page {
  display: block;
  width: 100%;
  color: var(--text-primary, #1a1a1a);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.conduct-page .legal-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
}

.conduct-page .legal-breadcrumb {
  margin: 0 0 18px;
  color: var(--text-muted, #888888);
  font: 400 13px/1.4 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.conduct-page .legal-breadcrumb a {
  color: var(--text-secondary, #555555);
  text-decoration: none;
}

.conduct-page .legal-breadcrumb a:hover {
  text-decoration: underline;
}

.conduct-page .legal-header {
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 2px solid var(--primary, #222222);
}

.conduct-page .legal-header h1 {
  margin: 0 0 8px;
  color: var(--text-primary, #1a1a1a);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.conduct-page .legal-updated {
  color: var(--text-muted, #888888);
  font: 400 13px/1.4 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.conduct-page .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--border-light, #f0f0f0);
}

.conduct-page .legal-nav-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--bg-alt, #f5f5f5);
  color: var(--text-secondary, #555555);
  font: 500 12px/1 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.conduct-page .legal-nav-btn:hover {
  background: var(--border-light, #eeeeee);
}

.conduct-page .legal-nav-btn.active {
  background: var(--primary, #222222);
  color: #ffffff;
}

.conduct-page .legal-body {
  color: var(--text-primary, #1a1a1a);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.conduct-page .legal-body h2 {
  margin: 32px 0 12px;
  color: var(--text-primary, #1a1a1a);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.conduct-page .legal-body p {
  margin: 0 0 14px;
  font: inherit;
}

.conduct-page .legal-toc-note {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold, #d4a017);
  border-radius: 0 4px 4px 0;
  background: var(--gold-tint, #fffdf5);
  color: var(--text-primary, #1a1a1a);
  font: 400 14px/1.6 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 720px) {
  .conduct-page .legal-header h1 {
    font-size: 28px;
  }

  .conduct-page .legal-body {
    font-size: 15px;
  }
}

/* Dark mode uses the existing shared theme tokens. */
html[data-mode="dark"] .conduct-page .legal-nav-btn.active {
  color: #111111;
}
