/* ============================================================
   Hohenstein LLC — shared legal stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   DARK theme: graphite #14161C · chrome-silver #C9D2E0
   ============================================================ */

:root {
  --graphite: #14161C;
  --chrome: #C9D2E0;
  --white: #EDF1F7;
  --silver: #C6CDD9;
  --dim: #8B93A5;
  --surface: #1B1E26;
  --surface-2: #21242E;
  --hairline: #2A2E3A;
}

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

.legal-page {
  background-color: #14161C;
  color: #C6CDD9;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: var(--chrome);
  text-decoration: none;
}

.legal-page a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--chrome);
  text-underline-offset: 3px;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- legal header ---------- */

.legal-header {
  background-color: #1B1E26;
  border-bottom: 1px solid #2A2E3A;
  padding: 36px 0 34px;
}

.legal-header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-brand {
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #EDF1F7;
}

.legal-doc-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #C9D2E0;
}

.legal-h1 {
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #EDF1F7;
  margin-top: 8px;
}

.legal-meta {
  font-size: 13px;
  color: #8B93A5;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ---------- content ---------- */

.legal-content {
  padding: 56px 0 72px;
}

.legal-content .legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.toc {
  background-color: #21242E;
  border: 1px solid #2A2E3A;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.toc-title {
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #EDF1F7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  font-size: 14px;
  color: #C6CDD9;
}

.toc a:hover {
  color: #EDF1F7;
  text-decoration: underline;
  text-decoration-color: #C9D2E0;
}

.legal-lead {
  font-size: 16px;
  color: #C6CDD9;
  margin-bottom: 10px;
}

/* scope isolation: legal sections never carry a background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section h2 {
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #EDF1F7;
  margin: 40px 0 14px;
  padding-left: 18px;
  position: relative;
}

.legal-content section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background-color: #C9D2E0;
}

.legal-content section p {
  margin-bottom: 14px;
  color: #C6CDD9;
  font-size: 15.5px;
}

.legal-content section ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: none;
}

.legal-content section ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: #C6CDD9;
}

.legal-content section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: #C9D2E0;
}

/* ---------- legal footer ---------- */

.legal-footer {
  background-color: #1B1E26;
  border-top: 1px solid #2A2E3A;
  padding: 30px 0;
}

.legal-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-footer p {
  font-size: 13px;
  color: #8B93A5;
  line-height: 1.8;
}

.legal-footer a {
  font-size: 13px;
  color: #C9D2E0;
  font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .legal-h1 {
    font-size: 30px;
  }

  .toc ol {
    columns: 1;
  }

  .legal-content section h2 {
    font-size: 20px;
  }
}
