/* Shared styles for Bizworld legal pages — light mode only */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #006ae6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: #006ae6;
}

.legal-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.legal-nav a {
  color: #6b7280;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: #006ae6;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  font-weight: 500;
}

/* Main content card */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-document {
  background: #ffffff;
  margin: 2rem auto 3rem;
  padding: 2.5rem 2.5rem 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .legal-document {
    margin: 1rem auto 2rem;
    padding: 1.75rem 1.25rem 2rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Typography */

.legal-document h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doc-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.doc-meta strong {
  color: #374151;
  font-weight: 600;
}

.legal-document h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.35;
}

.legal-document h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.5rem;
}

.legal-document p {
  margin: 0 0 1rem;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-document li {
  margin-bottom: 0.4rem;
}

.legal-document li > ul,
.legal-document li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.legal-document strong {
  font-weight: 600;
  color: #111827;
}

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.85em;
  background: #f3f4f6;
  color: #374151;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
}

/* Table of contents */

.toc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

.toc a {
  color: #374151;
}

.toc a:hover {
  color: #006ae6;
}

/* Callout */

.callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #006ae6;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #e5e7eb;
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

/* Footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
}

.site-footer a {
  color: #6b7280;
}

.site-footer a:hover {
  color: #006ae6;
}

.site-footer .sep {
  margin: 0 0.5rem;
  color: #d1d5db;
}
