/* ============================================================
   PINZENG - LEGAL STYLESHEET
   Trading warehouse count room at night
   legal.css is loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

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

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

body {
  font-size: 16px;
  line-height: 1.7;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #1B1E22;
  color: #EDE7DA;
  overflow-x: hidden;
}

/* The page surface itself (no full-height wrapper gradient,
   solid kiln-slate with strong bone-glaze text). */
.legal-page {
  min-height: 100vh;
  background-color: #1B1E22;
  color: #EDE7DA;
}

/* Every decorative rail underlay decorative layer. The scope
   isolation rule keeps all legal bodies transparent against the
   page background. Decorative watermarks below content sit hidden. */
.legal-page .legal-wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Scope isolation: only these sections transparent ---------- */
.legal-page .legal-content section {
  background: transparent !important;
  color: #EDE7DA;
}

/* ============================================================
   LEGAL HEADER (a header element with solid background)
   ============================================================ */
.legal-page .legal-header {
  background-color: #121417;
  border-bottom: 1px solid #565B60;
  padding: 26px 0;
  color: #EDE7DA;
}

/* All max-width containers: margin auto + padding 0 24px */
.legal-page .legal-mast,
.legal-page .legal-toc,
.legal-page .legal-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-page .back-home {
  color: #A9743C;
  text-decoration: none;
  font-weight: bold;
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
  font-size: 15px;
  border: 1px solid #A9743C;
  padding: 8px 16px;
  border-radius: 3px;
}

.legal-page .back-home:hover {
  background-color: #A9743C;
  color: #1B1E22;
}

.legal-page .mast-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-page .header-seal {
  width: 20px;
  height: 20px;
  background-color: #B6402F;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}

.legal-page h1 {
  font-size: 1.9rem;
  color: #EDE7DA;
  letter-spacing: 0.03em;
  font-family: Georgia, "Times New Roman", serif;
  margin-top: 6px;
}

.legal-page .legal-breadcrumb {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #A9743C;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.legal-page .legal-toc {
  padding-top: 26px;
  padding-bottom: 8px;
}

.legal-page .legal-toc-box {
  background-color: #121417;
  border: 1px solid #565B60;
  border-left: 5px solid #A9743C;
  padding: 20px 24px;
}

.legal-page .legal-toc-box h2 {
  font-size: 1.2rem;
  color: #A9743C;
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
}

.legal-page .legal-toc-list {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.legal-page .legal-toc-list li {
  margin: 5px 0;
  break-inside: avoid;
  counter-increment: none;
}

.legal-page .legal-toc-list a {
  color: #EDE7DA;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px dotted #565B60;
}

.legal-page .legal-toc-list a:hover {
  color: #A9743C;
  border-bottom-color: #A9743C;
}

/* ============================================================
   LEGAL CONTENT BODY
   Each section sits cleanly on the transparent legal surface.
   ============================================================ */
.legal-page .legal-content {
  padding-top: 20px;
  padding-bottom: 40px;
}

.legal-page .legal-content section {
  padding: 24px 0;
  border-bottom: 1px dotted #565B60;
}

.legal-page .legal-content section:last-child {
  border-bottom: 0;
}

.legal-page .legal-content section h2 {
  font-size: 1.35rem;
  color: #A9743C;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  padding-bottom: 6px;
  border-bottom: 2px solid #A9743C;
  display: inline-block;
}

.legal-page .legal-content section h2 .rule-num {
  color: #B6402F;
  margin-right: 10px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.legal-page .legal-content section p {
  margin-bottom: 14px;
  color: #EDE7DA;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 16px 24px;
  color: #EDE7DA;
}

.legal-page .legal-content ul li,
.legal-page .legal-content ol li {
  margin: 5px 0;
}

.legal-page .legal-content strong {
  color: #F6F1E5;
  font-weight: bold;
}

.legal-page .legal-updated {
  font-style: italic;
  color: #A9743C;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

/* Emphasized box within legal sections */
.legal-page .emphasis {
  background-color: #121417;
  border-left: 4px solid #A9743C;
  padding: 14px 20px;
  margin: 14px 0;
  color: #EDE7DA;
}

.legal-page .emphasis strong {
  color: #A9743C;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */
.legal-page .legal-footer {
  background-color: #121417;
  border-top: 1px solid #565B60;
  position: relative;
  z-index: 1;
}

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

.legal-page .legal-footer-inner .home-link-row,
.legal-page .legal-footer-inner p {
  display: block;
  margin-top: 22px;
}

.legal-page .legal-footer-inner .home-link-row {
  padding-top: 22px;
}

.legal-page .legal-footer-inner p {
  color: #EDE7DA;
  margin: 16px 0 8px 0;
  font-size: 0.85rem;
}

.legal-page .legal-footer-inner a {
  color: #A9743C;
  text-decoration: none;
  font-weight: bold;
  font-family: "Courier New", monospace;
  border: 1px solid #A9743C;
  padding: 8px 18px;
  border-radius: 3px;
  display: inline-block;
}

.legal-page .legal-footer-inner a:hover {
  background-color: #A9743C;
  color: #1B1E22;
}

.legal-page .legal-footer-inner p {
  color: #EDE7DA;
  margin-top: 12px;
  font-size: 0.85rem;
}

/* Scroll reveal never toggles legal bodies; always visible */
.legal-page .legal-content section {
  opacity: 1;
}

/* There are no decorative watermarks required on legal pages;
   placeholder hidden watermark rule to honour the spec absolute
   decorative guard and present a guard for the footer. */
.legal-page .legal-watermark {
  position: absolute;
  visibility: hidden;
}

/* ============================================================
   RESPONSIVE LEGAL
   ============================================================ */
@media (max-width: 720px) {
  .legal-page .legal-toc-list {
    columns: 1;
  }
  .legal-page h1 {
    font-size: 1.4rem;
  }
  .legal-page .legal-mast {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-page .legal-content section h2 {
    font-size: 1.15rem;
  }
}
