/* ============================================================
   Yellow Town — Legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   Strong contrast: LAMP-GREEN text on LANE-DEEP ground
   ============================================================ */

:root {
  --lane-deep: #2C2436;
  --lane-deep-2: #241E2C;
  --lamp-green: #D2E2BE;
  --brick-gold: #C49A58;
  --brick-gold-deep: #A67C3F;
  --kiln-smoke: #786866;
  --mortar-grey: #9AA494;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  background: #2C2436;
  color: #D2E2BE;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  line-height: 1.18;
  color: #D2E2BE;
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: #C49A58;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #D2E2BE;
  text-decoration: underline;
}

/* ---------- plain legal header ---------- */

.legal-header {
  background: #241E2C;
  border-bottom: 3px solid #C49A58;
  padding: 22px 0;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #D2E2BE;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.legal-header-brand:hover {
  color: #D2E2BE;
  text-decoration: none;
}

.legal-header-brick {
  width: 12px;
  height: 12px;
  background: #C49A58;
  border-radius: 2px;
  box-shadow: 0 3px 0 0 #9AA494;
}

.legal-header-home {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #C49A58;
  border: 2px solid #C49A58;
  border-radius: 4px;
  padding: 8px 16px;
}

.legal-header-home:hover,
.legal-header-home:focus {
  background: #C49A58;
  color: #2C2436;
  text-decoration: none;
}

/* ---------- legal page shell ---------- */

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

.legal-masthead {
  padding: 56px 0 30px;
  border-bottom: 1px solid #786866;
  margin-bottom: 40px;
}

.legal-masthead h1 {
  font-size: 44px;
  margin-bottom: 12px;
  color: #D2E2BE;
}

.legal-masthead .legal-sub {
  color: #D2E2BE;
  font-size: 16px;
  max-width: 720px;
  margin: 0;
}

.legal-masthead .legal-updated {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C49A58;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- table of contents ---------- */

.legal-toc {
  background: #241E2C;
  border: 2px solid #9AA494;
  border-left: 8px solid #C49A58;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C49A58;
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

.legal-toc li {
  margin-bottom: 7px;
  font-size: 15px;
  break-inside: avoid;
}

.legal-toc a {
  color: #D2E2BE;
}

.legal-toc a:hover {
  color: #C49A58;
}

/* ---------- legal content ---------- */

.legal-content {
  padding-bottom: 20px;
}

.legal-content section {
  background: transparent !important;
  padding: 0;
  margin-bottom: 8px;
}

.legal-content h2 {
  font-size: 26px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid #3F3549;
  color: #C49A58;
  scroll-margin-top: 20px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 19px;
  margin-top: 26px;
  color: #D2E2BE;
}

.legal-content p {
  color: #D2E2BE;
}

.legal-content ul,
.legal-content ol {
  color: #D2E2BE;
  padding-left: 24px;
  margin: 0 0 1.1em;
}

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

.legal-content strong {
  color: #D2E2BE;
  font-weight: 700;
}

.legal-content .entity-line {
  background: #786866;
  color: #2C2436;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content .entity-line strong {
  color: #2C2436;
}

.legal-callout {
  border-left: 6px solid #C49A58;
  background: #241E2C;
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 4px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-backtop {
  display: inline-block;
  margin: 30px 0 10px;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C49A58;
}

.legal-backtop:hover {
  color: #D2E2BE;
}

/* ---------- legal footer ---------- */

.legal-footer {
  background: #241E2C;
  border-top: 3px solid #D2E2BE;
  padding: 36px 0 30px;
  margin-top: 52px;
}

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

.legal-footer-brand {
  color: #D2E2BE;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.legal-footer p {
  color: #D2E2BE;
  font-size: 14px;
  margin: 0 0 6px;
}

.legal-footer a {
  color: #C49A58;
  font-weight: 700;
}

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

.legal-footer-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #3F3549;
  font-size: 14px;
  color: #D2E2BE;
}

.legal-footer-links a {
  padding: 0 4px;
}

.legal-footer-links .sep {
  color: #9AA494;
}

/* ---------- responsive ---------- */

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

  .legal-toc ol {
    columns: 1;
  }

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