/* ============================================================
   Legal pages stylesheet — FDC Oxen, Inc.
   Loaded ONLY by privacy.html and terms-of-service.html.
   Scope of decorative transparency = .legal-page .legal-content section
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #F2EEE2;   /* trail dust */
  color: #30322C;              /* harness ink */
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: #8A5A28; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header band ---------- */
.legal-header {
  background-color: #2A2C26;   /* feed barn */
  border-bottom: 5px solid #8A5A28;
}
.legal-header .legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 24px 26px;
  text-align: center;
}
.legal-kicker {
  color: #E6DFCB;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.legal-header h1 {
  color: #FAF7EC;
  font-size: 40px;
  margin-top: 6px;
  line-height: 1.15;
}
.legal-updated {
  color: #E6DFCB;
  font-size: 14px;
  margin-top: 10px;
}
.legal-home-back {
  display: inline-block;
  margin-top: 14px;
  background-color: #8A5A28;
  color: #FFFFFF;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}
.legal-home-back:hover { color: #FFFFFF; background-color: #7a4c22; text-decoration: none; }

/* ---------- Layout ---------- */
.legal-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 4px;
  align-items: start;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #FAF7EC;
  border: 1px solid #D6CBB0;
  padding: 20px 22px;
  position: sticky;
  top: 20px;
  border-top: 4px solid #8A5A28;
}
.legal-toc-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8A5A28;
  font-weight: 700;
  margin-bottom: 12px;
}
.legal-toc ol { list-style: none; padding: 0; }
.legal-toc li { margin-bottom: 7px; font-size: 14px; line-height: 1.3; }
.legal-toc li a { color: #30322C; }
.legal-toc li a:hover { color: #8A5A28; text-decoration: none; }

/* ---------- Content ---------- */
.legal-content { min-width: 0; }

.legal-content .intro-sheet {
  background-color: #FAF7EC;
  border-left: 5px solid #8A5A28;
  padding: 22px 26px;
  color: #3d3f38;
  font-size: 16px;
  margin-bottom: 34px;
}

/* Scope-isolation rule: only sections inside the content may be transparent */
.legal-page .legal-content section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.legal-content section { margin-bottom: 30px; }
.legal-content section p { margin-bottom: 14px; color: #3d3f38; }
.legal-content section ul, .legal-content section ol { margin: 12px 0 14px 24px; color: #3d3f38; }
.legal-content section li { margin-bottom: 8px; }

.legal-h2 {
  font-size: 23px;
  color: #30322C;
  margin: 6px 0 10px;
  padding-left: 14px;
  border-left: 4px solid #8A5A28;
  font-weight: 700;
  scroll-margin-top: 120px;
}

.legal-content .lead { font-size: 17px; color: #30322C; }

/* Contact sheet block */
.legal-contact-row {
  background-color: #FAF7EC;
  border: 1px solid #D6CBB0;
  padding: 20px 24px;
  margin-top: 10px;
  color: #3d3f38;
}
.legal-contact-row li { list-style: none; margin-bottom: 6px; }

/* ---------- Back to home link at end ---------- */
.legal-close {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 0;
}
.legal-close a {
  display: inline-block;
  background-color: #8A5A28;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.legal-footer {
  margin-top: 40px;
  background-color: #2A2C26;
}
.legal-footer .foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
  text-align: center;
  color: #FAF7EC;
}
.legal-footer a { color: #E6DFCB; }
.legal-footer a:hover { color: #FFFFFF; }
.legal-footer .foot-brand { font-size: 18px; font-weight: 700; color: #FAF7EC; }
.legal-footer .foot-addr { color: #E6DFCB; font-size: 14px; margin-top: 6px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-header h1 { font-size: 32px; }
}
