/* ==========================================================================
   css/legal.css — shared legal stylesheet for privacy.html and
   terms-of-service.html. Legal pages load ONLY this file, so every base
   rule here is defined in full with own strong contrast. Strong text,
   clean paper band, deep-teal headings, culture-amber accents. No rgba,
   no fractional opacity, no gradients on text.
   ========================================================================== */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

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

/* Never hide horizontal overflow on a body-level wrapper; only the body uses
   overflow-x hidden above, kept off the wrapper entirely. */

a {
  color: #1F5C4A;
  text-decoration: none;
}

a:hover {
  color: #A87318;
}

/* ==========================================================================
   Scope isolation guard
   Any stray rule that could peek into a legal pages section is neutralised
   here: sections scoped inside .legal-content always show a transparent,
   unset background regardless of cascade weight.
   ========================================================================== */
.legal-content section {
  background-color: transparent !important;
  border: 0 !important;
}

/* ==========================================================================
   Legal masthead
   A solid deep band that keeps the h1 in strong contrast against a clean
   reading surface below. It is plain on purpose: legal pages skip the site
   navigation rack and open directly into the policy text with a home link.
   ========================================================================== */
.legal-header {
  width: 100%;
  background-color: #14332E;
  border-bottom: 6px solid #D19A3F;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 34px;
}

.legal-home-link {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E6B96A;
  border: 1px solid #4C7269;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 18px;
}

.legal-home-link:hover {
  color: #FFFFFF;
  border-color: #D19A3F;
}

.legal-kicker {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #A9CDC0;
}

.legal-header h1 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: #FFFFFF;
}

.legal-doc-note {
  margin: 14px 0 0;
  color: #D9E7E0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Reading column
   Single, centred legal form with a generous measure for a comfortable read.
   ========================================================================== */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content-inner {
  background-color: #FFFFFF;
  border: 1px solid #E5E5DF;
  border-top: 4px solid #1F5C4A;
  border-radius: 2px;
  margin: 26px 0 30px;
  padding: 30px 34px 34px;
}

/* ---------- table of contents ---------- */
.legal-toc {
  margin: 4px 0 26px;
  padding: 18px 22px;
  background-color: #F3EFE5;
  border-left: 4px solid #D19A3F;
}

.legal-toc-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A87318;
  margin: 0 0 8px;
}

.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc-list li {
  margin: 0 0 5px;
}

.legal-toc-list a {
  color: #1F5C4A;
  border-bottom: 1px dotted #A6B8AF;
}

.legal-toc-list a:hover {
  color: #14332E;
  border-bottom-color: #14332E;
}

.legal-toc-list b {
  color: #7A5A22;
  font-weight: normal;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
}

/* ---------- body copy ---------- */
.legal-content p {
  color: #1F2A27;
  margin: 0 0 1em;
}

.legal-content ul {
  color: #1F2A27;
  padding-left: 22px;
  margin: 0 0 1em;
}

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

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #14332E;
  scroll-margin-top: 24px;
}

.legal-content h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 34px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #DFE0DA;
}

.legal-content h2 .legal-num {
  color: #D19A3F;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 6px;
  color: #1F5C4A;
}

.legal-content h4 {
  font-size: 1rem;
  margin: 20px 0 6px;
  color: #1F5C4A;
}

.legal-content strong {
  color: #14332E;
}

.legal-content code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  background-color: #F3F5F1;
  padding: 1px 5px;
  border-radius: 3px;
  color: #14332E;
}

/* ---------- callout box for focus statements ---------- */
.legal-callout {
  background-color: #F2F7F4;
  border-left: 4px solid #1F5C4A;
  padding: 14px 18px;
  margin: 0 0 1em;
  border-radius: 2px;
}

.legal-callout p {
  margin: 0;
}

/* ---------- footer with a link back to the homepage ---------- */
.legal-footer {
  width: 100%;
  background-color: #14332E;
}

.legal-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 24px 14px;
  text-align: center;
}

.legal-footer p {
  color: #C9DBD3;
  margin: 0 0 10px;
  font-size: 1.02rem;
}

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

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

.legal-footer-rule {
  height: 10px;
  margin: 0;
  background-color: #D19A3F;
  border-top: 2px solid #0F2B25;
  border-image: repeating-linear-gradient(45deg, #D19A3F 0 12px, #0F2B25 12px 24px) 1;
}

/* ---------- small print at the top of the doc ---------- */
.legal-contact-block {
  background-color: #F2F7F4;
  border: 1px solid #DFDFD8;
  border-radius: 4px;
  padding: 16px 18px;
  margin: 0 0 26px;
}

.legal-contact-block address {
  font-style: normal;
  color: #1F2A27;
}

/* ---------- jump back, small helper ---------- */
.legal-back-top {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1F5C4A;
  margin-top: 16px;
  border-bottom: 1px dotted #A6B8AF;
}

.legal-back-top:hover {
  color: #14332E;
}

/* Keep the bottom of the document clean; the footer closes directly. */
