/* BUGHUNT.lol — shared legal stylesheet (privacy / terms-of-service only)
   Legal pages load ONLY this file, never style.css. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: #14211F;
  background-color: #F5FAF9;
}

h1,
h2,
h3,
h4 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #14211F;
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 18px;
  color: #14211F;
}

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

a:hover {
  color: #14211F;
  text-decoration: underline;
}

/* ============ LEGAL PAGE WRAPPER ============ */

.legal-page {
  min-height: 100vh;
}

.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============ LEGAL HEADER (solid background, strong contrast) ============ */

.legal-header {
  background-color: #14211F;
  padding: 46px 24px 40px;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 42px;
  margin-bottom: 14px;
}

.legal-meta {
  color: #C9E4DF;
  font-size: 14px;
  letter-spacing: 1px;
}

.legal-home-link {
  display: inline-block;
  margin-top: 18px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #1E8A86;
  padding-bottom: 4px;
}

.legal-home-link:hover {
  color: #C9E4DF;
  text-decoration: none;
}

/* ============ LEGAL CONTENT + TABLE OF CONTENTS ============ */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 48px;
}

.legal-toc {
  background-color: #C9E4DF;
  border-left: 6px solid #1E8A86;
  padding: 26px 30px;
  margin-bottom: 52px;
}

.legal-toc-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #14211F;
  margin-bottom: 12px;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.toc-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.toc-list a {
  color: #14211F;
  font-weight: 600;
  font-size: 15px;
}

.toc-list a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #1E8A86;
  margin-right: 10px;
}

.toc-list a:hover {
  color: #1E8A86;
  text-decoration: none;
}

.legal-section {
  margin-bottom: 46px;
}

.legal-section h2 {
  font-size: 26px;
  color: #14211F;
  border-bottom: 3px solid #C9E4DF;
  padding-bottom: 10px;
  margin-bottom: 18px;
  scroll-margin-top: 24px;
}

.legal-section h3 {
  font-size: 19px;
  color: #1E8A86;
  margin-top: 20px;
}

.legal-section p {
  color: #14211F;
}

.legal-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: none;
}

.legal-section ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #14211F;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: #1E8A86;
}

/* ============ LEGAL FOOTER (links back to homepage) ============ */

.legal-footer {
  background-color: #1E8A86;
  padding: 26px 24px;
  margin-top: 24px;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.legal-footer p {
  color: #FFFFFF;
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.5px;
}

.legal-footer a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer a:hover {
  color: #C9E4DF;
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 760px) {
  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content {
    padding-top: 36px;
  }

  .toc-list {
    columns: 1;
  }

  .legal-section h2 {
    font-size: 22px;
  }
}
