/* ==========================================================================
   Zhuocuo — Legal pages stylesheet (privacy.html / terms-of-service.html)
   Loaded alone by legal pages; defines its own theme.
   ========================================================================== */

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

:root {
  --bg: #171310;
  --text: #F5EDE3;
  --accent: #B85C38;
  --gold: #D9A05B;
  --panel: #241D18;
  --line: #3A2F26;
  --ink: #171310;
}

body {
  background-color: #171310;
  color: #F5EDE3;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: #B85C38; text-decoration: none; }
a:hover { color: #D9A05B; text-decoration: underline; }

h1, h2, h3 { color: #F5EDE3; line-height: 1.2; }

/* ==========================================================================
   Scope isolation: only the legal page content may inherit section styles.
   ========================================================================== */

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

/* ==========================================================================
   Header (solid copper band, dark title for strong contrast)
   ========================================================================== */

.legal-header {
  background-color: #B85C38;
  border-bottom: 2px solid #B85C38;
}
.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-home {
  color: #171310;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.legal-home:hover { color: #2A2018; text-decoration: none; }
.legal-tag {
  background-color: #171310;
  color: #D9A05B;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
}

/* ==========================================================================
   Main content column
   ========================================================================== */

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

.legal-article .legal-title-block {
  background-color: #241D18;
  border-top: 3px solid #B85C38;
  padding: 36px 34px;
  margin-bottom: 40px;
}
.legal-eyebrow {
  display: block;
  color: #D9A05B;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-title-block h1 {
  color: #F5EDE3;
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.legal-lede { color: #F5EDE3; font-size: 17px; }

/* ==========================================================================
   Table of contents
   ========================================================================== */

.toc {
  background-color: #241D18;
  border: 1px solid #3A2F26;
  border-left: 3px solid #B85C38;
  padding: 28px 30px;
  margin-bottom: 48px;
}
.toc-title {
  color: #D9A05B;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 6px; }
.toc a {
  color: #F5EDE3;
  font-size: 15px;
}
.toc a:hover { color: #D9A05B; }

/* ==========================================================================
   Sections
   ========================================================================== */

.legal-content section {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid #3A2F26;
}
.legal-content section:last-of-type { border-bottom: 0; }
.legal-content section h2 {
  color: #D9A05B;
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 2px solid #B85C38;
}
.legal-content section p {
  color: #F5EDE3;
  margin-bottom: 16px;
}
.legal-content section p:last-child { margin-bottom: 0; }
.legal-content section ul,
.legal-content section ol {
  color: #F5EDE3;
  margin: 0 0 16px 24px;
}
.legal-content section li { margin-bottom: 8px; }

.legal-close {
  margin-top: 48px;
  padding: 26px 30px;
  background-color: #241D18;
  border-top: 3px solid #B85C38;
  color: #F5EDE3;
}
.legal-close a { color: #D9A05B; font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */

.legal-footer {
  background-color: #B85C38;
  margin-top: 24px;
  padding: 24px;
  text-align: center;
}
.legal-footer p {
  color: #171310;
  font-size: 14px;
  font-weight: 600;
}
.legal-footer a { color: #171310; text-decoration: underline; }
.legal-footer a:hover { color: #2A2018; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .legal-content { padding-top: 36px; }
  .legal-title-block { padding: 26px 22px; }
  .legal-title-block h1 { font-size: 1.9rem; }
  .toc { padding: 22px 20px; }
}
