/* ==========================================================================
   AKimballEngineering LLC — legal stylesheet (self contained)
   Loaded ONLY by privacy.html and terms-of-service.html
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #F2EFE8;
  color: #332B20;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", "Lucida Grande", Verdana, sans-serif;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: #A5732C;
  text-decoration: underline;
}

a:hover {
  color: #6B2E3A;
}

/* ---------- legal header ---------- */
.legal-header {
  background-color: #24211C;
  border-bottom: 6px solid #A5732C;
  padding: 30px 24px;
}

.legal-header h1 {
  color: #F2EFE8;
  font-size: 1.9rem;
  max-width: 980px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.legal-header-brand {
  display: block;
  max-width: 980px;
  margin: 0 auto 8px;
  color: #A5732C;
  font-family: "Trebuchet MS", "Lucida Grande", Verdana, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- legal wrapper ---------- */
.legal-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.legal-content section {
  background-color: transparent !important;
  color: #332B20;
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #332B20;
  border-left: 6px solid #A5732C;
  padding-left: 14px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: #5E6B52;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-content p {
  color: #332B20;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: #332B20;
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-meta {
  background-color: #E7E2D4;
  border: 2px solid #332B20;
  border-top: 8px solid #A5732C;
  padding: 20px 24px;
  margin-bottom: 30px;
  color: #332B20;
}

.legal-meta p {
  margin: 0 0 6px;
}

.legal-meta strong {
  color: #332B20;
}

/* ---------- table of contents ---------- */
.legal-toc {
  background-color: #E7E2D4;
  border: 2px solid #332B20;
  padding: 24px 28px;
  margin-bottom: 34px;
}

.legal-toc h2 {
  font-size: 1.2rem;
  color: #332B20;
  border-left: 6px solid #5E6B52;
  padding-left: 12px;
  margin-top: 0;
}

.legal-toc ol {
  columns: 2;
  column-gap: 30px;
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  color: #A5732C;
  text-decoration: none;
  border-bottom: 1px solid #C9B486;
}

.legal-toc a:hover {
  color: #6B2E3A;
  border-bottom-color: #6B2E3A;
}

/* ---------- legal footer ---------- */
.legal-footer {
  background-color: #24211C;
  color: #E7E2D4;
  border-top: 6px solid #A5732C;
  padding: 34px 24px;
}

.legal-footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.legal-footer p {
  color: #D9C7A4;
  margin: 0 0 8px;
}

.legal-footer a {
  color: #F2EFE8;
}

.legal-footer a:hover {
  color: #D9C7A4;
}

.legal-back {
  display: inline-block;
  margin-top: 6px;
  color: #A5732C;
  font-family: "Trebuchet MS", "Lucida Grande", Verdana, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal-back:hover {
  color: #F2EFE8;
  text-decoration: none;
}

@media (max-width: 720px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-header h1 {
    font-size: 1.5rem;
  }
}
