/* Legal stylesheet for privacy.html and terms-of-service.html */
/* Loaded ONLY by legal pages. Does not load style.css. DARK orchard theme. */

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #12100D;
  color: #F1EEE6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

.legal-page img {
  max-width: 100%;
}

.legal-page a {
  color: #D98E3B;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-page a:hover {
  color: #F6F1E2;
  border-bottom-color: #D98E3B;
}

/* ============ SCOPE ISOLATION ============ */
/* Keep legal-page content containers transparent against the dark body;
   never colour the header/footer. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============ HEADER (solid, never a <section>) ============ */
.legal-header {
  background-color: #201B14;
  border-bottom: 2px solid #D98E3B;
  padding: 60px 0 50px;
}

.legal-header .legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .topback {
  margin-bottom: 22px;
}

.legal-header .topback a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D98E3B;
  border: none;
}

.legal-header .topback a:hover {
  color: #F6F1E2;
}

.legal-header h1 {
  color: #F6F1E2;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
}

.legal-header .legal-tagline {
  color: #8C8172;
  font-size: 19px;
  margin-top: 12px;
  max-width: 700px;
}

.legal-header .legal-updated {
  font-family: Arial, Helvetica, sans-serif;
  color: #D98E3B;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 18px;
}

/* ============ LAYOUT ============ */
.legal-content .legal-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
}

/* table of contents */
.legal-content .toc {
  flex: 1 1 250px;
  background-color: #282117;
  border: 1px solid #322B22;
  border-radius: 8px;
  padding: 26px 24px;
  position: sticky;
  top: 20px;
  max-width: 300px;
  margin-bottom: 40px;
}

.legal-content .toc h2 {
  color: #D98E3B;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid #322B22;
  padding-bottom: 12px;
}

.legal-content .toc ol {
  list-style: none;
  counter-reset: toc;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-content .toc ol li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.legal-content .toc ol li a {
  color: #CCC7BB;
  font-size: 14px;
  display: inline;
  padding: 4px 0;
}

.legal-content .toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: #B84A3C;
  margin-right: 8px;
  font-size: 12px;
}

.legal-content .toc ol li a:hover {
  color: #D98E3B;
}

/* main legal text */
.legal-content .legal-paper {
  flex: 1 1 620px;
  min-width: 300px;
}

/* ============ SECTIONS ============ */
.legal-content .legal-paper section {
  margin-bottom: 12px;
  background-color: transparent;
}

.legal-content .legal-paper h2 {
  color: #D98E3B;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #322B22;
  scroll-margin-top: 90px;
}

.legal-content .legal-paper h3 {
  color: #F6F1E2;
  font-size: 20px;
  margin: 26px 0 10px;
}

.legal-content .legal-paper p {
  color: #CCC7BB;
  margin-bottom: 16px;
}

.legal-content .legal-paper ul,
.legal-content .legal-paper ol {
  margin: 0 0 18px 26px;
  color: #CCC7BB;
}

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

.legal-content .legal-paper strong {
  color: #F6F1E2;
}

.legal-content .legal-paper .addr-line {
  background-color: #201B14;
  border-left: 4px solid #D98E3B;
  padding: 18px 20px;
  margin: 18px 0 24px;
  line-height: 1.9;
}

.legal-content .legal-paper .gentext {
  background-color: #201B14;
  border: 1px solid #322B22;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 14px 0 18px;
  font-size: 15px;
  color: #CCC7BB;
}

/* ============ FOOTER ============ */
.legal-footer {
  background-color: #0C0A07;
  border-top: 1px solid #322B22;
  padding: 50px 0;
  margin-top: 30px;
}

.legal-footer .legal-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.legal-footer .back-home {
  font-family: Arial, Helvetica, sans-serif;
  color: #D98E3B;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.legal-footer .back-home:hover {
  color: #F6F1E2;
}

.legal-footer p.legal-line {
  color: #8C8172;
  font-size: 14px;
  line-height: 2;
  margin-top: 22px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .legal-content .legal-container {
    flex-direction: column;
    gap: 20px;
  }

  .legal-content .toc {
    position: static;
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
  }

  .legal-header h1 {
    font-size: 32px;
  }

  .statement .quote-inner {
    font-size: 24px;
  }
}

/* ensure container centering anywhere a slim content block is used */
.legal-page .legal-container {
  margin: 0 auto;
  padding: 0 24px;
}
