/* =====================================================================
   Devtanc Consulting LLC — legal stylesheet (privacy, terms)
   Legal pages load ONLY this file. Defines its own background and text
   colors with strong contrast. No rgba, no opacity, no gradients.
   ===================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #EFF3F4;
  color: #28323A;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: #8F3422; }
h1, h2, h3 { color: #28323A; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1.05em; }

/* ---------- plain legal header ---------- */
.legal-header {
  background-color: #243238;
  color: #FBFDFE;
  border-bottom: 5px solid #B5452F;
  padding: 22px 0;
}
.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.legal-brand {
  text-decoration: none;
  color: #FBFDFE;
}
.legal-brand .legal-brand-name {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FBFDFE;
}
.legal-brand .legal-brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #DCE7EA;
  margin-top: 2px;
}
.legal-header h1 {
  color: #FBFDFE;
  font-size: 1.5rem;
  margin: 0;
}
.legal-home-link {
  display: inline-block;
  background-color: #B5452F;
  color: #FBFDFE;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 7px;
  border: 2px solid #B5452F;
}
.legal-home-link:hover { background-color: #FBFDFE; color: #8F3422; border-color: #FBFDFE; }

/* ---------- layout ---------- */
.legal-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-meta {
  background-color: #DCE7EA;
  border-left: 6px solid #39464F;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 34px 0 30px;
  color: #243238;
  font-size: 0.94rem;
}
.legal-meta strong { color: #28323A; }

.legal-toc {
  background-color: #FBFDFE;
  border: 2px solid #DCE7EA;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #39464F;
  margin-bottom: 0.8em;
}
.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li { margin-bottom: 7px; break-inside: avoid; }
.legal-toc a {
  color: #8F3422;
  text-decoration: none;
  font-size: 0.94rem;
}
.legal-toc a:hover { text-decoration: underline; color: #243238; }

/* scope isolation: any section inside legal content stays on page color */
.legal-content section {
  background-color: transparent !important;
  color: #28323A;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 1.9em;
  padding-top: 0.5em;
  border-top: 2px solid #DCE7EA;
  scroll-margin-top: 20px;
}
.legal-content h2:first-of-type { border-top: 0; margin-top: 0.6em; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.3em; }
.legal-content p { color: #28323A; }
.legal-content ul, .legal-content ol { color: #28323A; padding-left: 24px; }
.legal-content li { margin-bottom: 9px; }
.legal-content a { color: #8F3422; font-weight: 600; }

.legal-callout {
  background-color: #FBFDFE;
  border: 2px solid #DCE7EA;
  border-left: 6px solid #B5452F;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-backtop {
  margin: 46px 0 10px;
  padding-top: 22px;
  border-top: 2px solid #DCE7EA;
}
.legal-backtop a {
  display: inline-block;
  background-color: #39464F;
  color: #FBFDFE;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 7px;
}
.legal-backtop a:hover { background-color: #B5452F; }

/* ---------- footer ---------- */
.legal-footer {
  background-color: #243238;
  color: #FBFDFE;
  margin-top: 50px;
  padding: 28px 0;
  border-top: 5px solid #B5452F;
}
.legal-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.legal-footer p { margin: 0; color: #DCE7EA; font-size: 0.9rem; }
.legal-footer a { color: #FBFDFE; text-decoration: none; margin-right: 16px; font-size: 0.9rem; }
.legal-footer a:hover { text-decoration: underline; }
.legal-footer .pylon-glyph {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid #4E6E54;
  margin-right: 6px;
  vertical-align: -1px;
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-content h2 { font-size: 1.25rem; }
}
