/*
  legal.css — shared single-column legal shape for Atkinbull LLC
  Loaded only by privacy.html and terms-of-service.html.
  Strong contrast on an opaque light ground; the footer of each legal page
  links back to the homepage.
*/

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #F6F2E3;
  color: #1F211B;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: #8C4926;
}

p {
  margin: 0 0 1.1em;
}

address {
  font-style: normal;
}

h1, h2, h3 {
  line-height: 1.25;
  color: #15170F;
}

/* Scope isolation: keep any imported sectional styling transparent so the
   single-column legal shape and its own contrast always win. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Legal header must sit on a solid ground with strong h1 contrast. */
.legal-header {
  background-color: #15170F;
  color: #F6F2E3;
  padding: 42px 24px 30px;
  border-bottom: 6px solid #A55B33;
}

.legal-header .legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header h1 {
  margin: 0 0 10px;
  color: #F6F2E3;
  font-size: 40px;
  letter-spacing: 1px;
}

.legal-meta {
  margin: 0;
  color: #C9C6B6;
  font-size: 15px;
  max-width: 100%;
}

/* Single centered column */
.legal-content {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.legal-toc {
  background-color: #FBF8EA;
  padding: 22px 26px;
  margin: 0 0 42px;
  border: 1px solid #D8D2B8;
  border-top: 4px solid #A55B33;
}

.toc-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  color: #15170F;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  column-count: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin: 0 0 6px;
  break-inside: avoid;
}

.legal-toc a {
  color: #1F211B;
  text-decoration: underline;
}

.legal-toc a:hover {
  color: #A55B33;
}

/* Body sections */
.legal-content section {
  margin: 0 0 34px;
  padding: 0 0 18px;
  border-bottom: 1px solid #D8D2B8;
}

.legal-content section:last-of-type {
  border-bottom: 0;
}

.legal-content h2 {
  color: #15170F;
  margin: 0 0 12px;
  font-size: 23px;
}

.legal-content p {
  color: #2B2D25;
  text-align: left;
  max-width: 100%;
}

/* Legal footer */
.legal-footer {
  background-color: #15170F;
  color: #F1EFE0;
  padding: 32px 0 20px;
  border-top: 6px solid #8A8C7E;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.legal-footer .legal-wrap {
  text-align: center;
}

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

.legal-footer__home a {
  color: #F6F2E3;
  font-weight: 700;
  text-decoration: underline;
}

.legal-footer__home a:hover {
  color: #A55B33;
}

.legal-footer__copy {
  color: #8A8C7E;
  font-size: 14px;
  margin-top: 14px;
}

/* Narrow screens: single column list in the TOC */
@media (max-width: 640px) {
  .legal-toc ol {
    column-count: 1;
  }
  .legal-header {
    padding: 28px 12px 22px;
  }
  .legal-content {
    padding: 26px 0;
  }
  .legal-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}
