/* ============================================================
   AGAINST THE GRAYNE LLC — LEGAL PAGES (shared stylesheet)
   Independent of /css/style.css so legal docs carry their own
   light pour-canvas identity with strong dark text contrast.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.legal-page {
  font-size: 16px;
}

.legal-page body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  background-color: #F3F1EA;
  color: #36322A;
  -webkit-font-smoothing: antialiased;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #175248;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  text-decoration: none;
}

/* ------------------------------------------------------------
   Plain legal header (a <header>/<div>, never a <section>) on a
   solid contrasting background with a strong h1.
   ------------------------------------------------------------ */
.legal-page .legal-head {
  background-color: #175248;
  border-bottom: 6px solid #D9C36B;
  padding: 44px 0 40px;
  width: 100%;
}

.legal-page .legal-head .legal-head-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #F3F1EA;
}

.legal-page .legal-head p {
  margin: 0;
  color: #F3F1EA;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.legal-page .legal-head a.back {
  display: inline-block;
  margin-top: 18px;
  color: #D9C36B;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-page .legal-head a.back:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Content container — max-width, must be centered with side
   padding, scoped to .legal-page .legal-content only.
   ------------------------------------------------------------ */
.legal-page .legal-wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-content {
  background-color: #FAF9F4;
  margin: 44px auto 0;
}

.legal-page .legal-content .intro {
  background-color: #E6E2D6;
  padding: 28px 30px;
  border-left: 6px solid #175248;
  margin-bottom: 40px;
  color: #36322A;
}

.legal-page .legal-content .intro strong {
  color: #175248;
}

/* must never paint section backgrounds over ours */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page .legal-content section > h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #175248;
  margin: 46px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #D9C36B;
}

.legal-page .legal-content section > h3 {
  font-size: 18px;
  font-weight: 700;
  color: #36322A;
  margin: 24px 0 8px;
}

.legal-page .legal-content p {
  color: #4A463C;
  margin: 0 0 14px;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 18px;
  padding-left: 26px;
  color: #4A463C;
}

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

.legal-page .legal-content .small-note {
  color: #918B80;
  font-size: 14px;
}

/* ------------------------------------------------------------
   Updated-row detail + footer block inside the docs
   ------------------------------------------------------------ */
.legal-page .updated-row {
  color: #918B80;
  font-size: 14px;
  margin-bottom: 34px;
}

.legal-page .legal-content .email-em {
  color: #36322A;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Legal footer — plain dark footer that links back to homepage
   ------------------------------------------------------------ */
.legal-page .legal-foot {
  background-color: #36322A;
  margin-top: 60px;
  padding: 30px 0;
  border-top: 8px solid #D9C36B;
}

.legal-page .legal-foot .legal-foot-inner {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-page .legal-foot p {
  color: #F3F1EA;
  margin: 0;
  font-size: 14px;
}

.legal-page .legal-foot a {
  color: #D9C36B;
  text-decoration: none;
  font-weight: 600;
}

.legal-page .legal-foot a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   TOC
   ------------------------------------------------------------ */
.legal-page .legal-toc {
  background-color: #FAF9F4;
  border: 1px solid #E6E2D6;
  padding: 22px 26px;
  margin-bottom: 8px;
}

.legal-page .legal-toc h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #175248;
  margin: 0 0 12px;
}

.legal-page .legal-toc ol {
  margin: 0;
  columns: 2;
  column-gap: 40px;
  padding-left: 22px;
  list-style: decimal;
}

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

.legal-page .legal-toc a {
  color: #36322A;
  text-decoration: none;
}

.legal-page .legal-toc a:hover {
  color: #175248;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .legal-page .legal-toc ol {
    columns: 1;
  }

  .legal-page .legal-head h1 {
    font-size: 30px;
  }
}
