/* =====================================================
   ENRENTRADE — Legal pages (Privacy, Terms)
   These pages load ONLY legal.css, so this stylesheet
   defines background, text and layout itself with high
   contrast between every layer.
   ===================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  background: #E9EDF0;
  color: #23262E;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: #5A5FD0; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #26262E; }
ul, ol { padding-left: 22px; }

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

/* ---- Legal header: solid background, strong h1 contrast ---- */
.legal-head {
  background: #26262E;
  color: #FBFAF7;
  padding: 34px 0 54px;
  border-bottom: 6px solid #5A5FD0;
}
.legal-searchlist {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #5A5FD0;
  padding-bottom: 14px;
}
.legal-home {
  color: #FBFAF7;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.legal-home:hover { color: #E9D9A8; }
.legal-back { color: #E9D9A8; text-decoration: none; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; }
.legal-back:hover { color: #FBFAF7; }
.legal-head h1 {
  color: #FBFAF7;
  font-size: 48px;
  margin: 30px 0 18px;
  line-height: 1.1;
}
.legal-head .lede { color: #E4E7EB; font-size: 18px; }
.legal-head p strong { color: #E9D9A8; }
.legal-head p { margin-top: 14px; color: #E4E7EB; }

/* ---- Table of contents ---- */
.legal-toc {
  background: #FBFAF7;
  padding: 30px 0;
  margin: 22px 0 10px;
  border: 2px solid #26262E;
}
.legal-toc h2 { font-size: 22px; color: #26262E; margin-bottom: 16px; }
.legal-toc ol { color: #23262E; columns: 2; column-gap: 40px; }
.legal-toc li { margin: 8px 0; }
.legal-toc a { color: #5A5FD0; text-decoration: none; font-weight: 600; }
.legal-toc a:hover { color: #26262E; text-decoration: underline; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---- Main legal content ---- */
.legal-content {
  background: #E9EDF0;
  padding: 20px 0 40px;
}
.legal-content section { border-bottom: 1px dashed #8C8F96; }
.legal-content h2 { color: #26262E; font-size: 28px; margin: 34px 0 14px; }
.legal-content p { color: #23262E; margin: 14px 0; }

/* Scope isolation: force transparent surface inside legal prose
   so any inherited stylesheet cannot leak patterned or tinted
   backgrounds into the legal sections. */
.legal-page .legal-content section { background: transparent !important; }

/* ---- Legal footer ---- */
.legal-foot {
  background: #26262E;
  color: #FBFAF7;
  border-top: 6px solid #5A5FD0;
  padding: 34px 0 60px;
}
.legal-foot-row { text-align: center; }
.legal-foot-row a {
  color: #E9D9A8;
  text-decoration: none;
  font-weight: 800;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .04em;
  display: inline-block;
  margin-bottom: 14px;
}
.legal-foot-row a:hover { color: #FBFAF7; }
.legal-addr { color: #FBFAF7; font-size: 15px; }

/* ---- Focus visibility for accessibility ---- */
a:focus, .legal-home:focus, .legal-back:focus {
  outline: 3px solid #E9D9A8;
  outline-offset: 2px;
}
