/* ============================================================
   CASEY HYER, LLC — Legal Pages (Privacy / Terms of Service)
   Loads alone on legal pages; matches the light ticket-teal theme
   ============================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  background-color: #F4F6F5;
  color: #55606A;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
ul, ol { list-style-position: inside; padding: 0; }

/* Scope isolation: only the legal content area gets neutral backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Legal header (must be a div/header, solid background) ---- */
.legal-header {
  background-color: #2E3538;
  border-radius: 0 0 6px 6px;
  padding: 34px 28px 30px;
  text-align: center;
  margin-top: 22px;
  border-bottom: 4px solid #1F6E6B;
}
.legal-header .legal-home {
  display: inline-block;
  color: #FBFDFC;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.legal-header .legal-home span { color: #7FB0A8; }
.legal-header .legal-home:hover { color: #7FB0A8; }
.legal-header .legal-home:hover span { color: #FBFDFC; }
.legal-header h1 {
  color: #FFFFFF;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  display: inline;
}
.legal-updated {
  color: #C4CFD2;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 6px;
}

/* ---- Content ---- */
.legal-content { padding: 34px 0 12px; }
.legal-content .intro { margin-bottom: 10px; }
.legal-content .intro p {
  margin-bottom: 16px;
  font-size: 17px;
  color: #55606A;
}
.legal-content .intro p:first-of-type {
  color: #22282C;
  font-weight: 600;
}
.legal-content section {
  margin-bottom: 34px;
}
.legal-content h2 {
  color: #1F6E6B;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #C4CFD2;
}
.legal-content .intro h2,
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: #55606A;
  margin-bottom: 14px;
}
.legal-content .contact-block {
  background-color: #FBFDFC;
  border: 1px solid #2E3538;
  border-left: 5px solid #1F6E6B;
  border-radius: 4px;
  padding: 18px 22px;
  line-height: 2;
  font-weight: 500;
  color: #22282C;
  margin-top: 8px;
}

/* ---- Table of contents ---- */
.legal-content .toc {
  background-color: #FBFDFC;
  border: 1px solid #2E3538;
  border-radius: 6px;
  padding: 22px 28px;
  margin-bottom: 30px;
}
.legal-content .toc h2 {
  border-bottom: none;
  color: #22282C;
  font-size: 22px;
  margin: 0 0 14px;
  padding: 0;
}
.legal-content .toc ol {
  list-style: decimal inside;
  counter-reset: none;
}
.legal-content .toc ol li {
  margin: 7px 0;
  color: #55606A;
}
.legal-content .toc a {
  color: #1F6E6B;
  font-weight: 600;
  display: inline;
}
.legal-content .toc a:hover {
  color: #22282C;
  text-decoration: underline;
}

/* ---- Footer ---- */
.legal-footer {
  position: relative;
  z-index: 1;
  background-color: #13181A;
  border-radius: 6px 6px 0 0;
  padding: 26px 28px 30px;
  text-align: center;
  border-top: 4px solid #1F6E6B;
  margin-top: 20px;
}
.legal-footer .back-home {
  display: inline-block;
  color: #7FB0A8;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.legal-footer .back-home:hover { color: #FFFFFF; text-decoration: underline; }
.legal-footer .legal-legal {
  color: #C4CFD2;
  font-size: 14px;
  line-height: 1.9;
  border-top: 1px solid #2E3538;
  padding-top: 14px;
  margin: 0;
}

/* No decorative text is allowed to be transparent */
.legal-page-wrap {
  color: #55606A;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .legal-header h1 { font-size: 26px; }
  .legal-content h2 { font-size: 20px; }
  .legal-header { padding: 24px 18px 22px; }
  .legal-page-wrap { padding: 0 16px; }
  .legal-content .toc ol li { font-size: 15px; }
}
