/* AGFBuild — shared legal stylesheet for privacy and terms pages.
   Legal pages load ONLY this stylesheet (never style.css). */

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2B2118;
  background-color: #FAF4EC;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #2B2118;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: #96682F;
  text-decoration: none;
}

a:hover {
  color: #7E5424;
}

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

.legal-header {
  background: #C79B5F;
  padding: 58px 0 50px;
}

.legal-header .legal-container {
  text-align: center;
}

.legal-home {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2B2118;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 20px;
}

.legal-home:hover {
  color: #2B2118;
}

.legal-header h1 {
  font-size: 44px;
  margin: 0;
  color: #2B2118;
}

.legal-sub {
  margin: 12px 0 0;
  font-weight: 600;
  color: #2B2118;
}

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

.legal-meta {
  font-size: 14px;
  color: #2B2118;
  margin: 0 0 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid #C79B5F;
}

.legal-toc {
  background: #EFE0C8;
  border-top: 4px solid #C79B5F;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
}

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

.legal-toc a {
  color: #2B2118;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  padding: 22px 0;
}

.legal-content h2 {
  font-size: 26px;
  margin: 26px 0 14px;
  padding-top: 14px;
  border-top: 2px solid #C79B5F;
}

.legal-content h2:first-of-type {
  border-top: none;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 24px;
}

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

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #C79B5F;
  text-align: center;
}

.legal-back a {
  font-size: 15px;
  font-weight: 700;
  color: #2B2118;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back a:hover {
  color: #2B2118;
}

.legal-footer {
  background: #2B2118;
  color: #FAF4EC;
  padding: 44px 0;
  text-align: center;
}

.legal-footer p {
  margin: 6px 0;
  color: #FAF4EC;
}

.legal-footer a {
  color: #C79B5F;
  font-weight: 700;
}

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

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

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

  .legal-toc {
    padding: 22px 20px;
  }
}
