/* ==========================================================================
   DAOJIE — Shared legal stylesheet (privacy.html / terms-of-service.html)
   Dark warm-brown-black theme · Amber / Honey / Deep-brown accents
   ========================================================================== */

.legal-page {
  background-color: #151208;
  color: #F2EDE0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #151208;
  color: #F2EDE0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: #D99A26;
  color: #241A06;
}

/* ==========================================================================
   LEGAL HEADER
   ========================================================================== */

.legal-header {
  background: #1E1A12;
  border-bottom: 2px solid #D99A26;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 44px;
}

.legal-header .kicker {
  display: inline-block;
  background: #D99A26;
  color: #241A06;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #F2EDE0;
  margin-bottom: 14px;
}

.legal-header .updated {
  color: #E8C87A;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==========================================================================
   LEGAL CONTENT
   ========================================================================== */

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

.legal-content {
  padding: 52px 0 64px;
}

.legal-content section {
  background-color: transparent !important;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #E8C87A;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2E2616;
  scroll-margin-top: 90px;
}

.legal-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #F2EDE0;
  margin: 20px 0 10px;
}

.legal-content p {
  color: #C9BEA5;
  font-size: 1.0rem;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: #C9BEA5;
  font-size: 1.0rem;
  margin: 0 0 16px 22px;
}

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

.legal-content strong {
  color: #F2EDE0;
}

.legal-content a {
  color: #E8C87A;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #F2EDE0;
}

/* Table of contents */
.legal-toc {
  background: #1E1A12;
  border: 1px solid #2E2616;
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8C87A;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}

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

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

.legal-toc a {
  color: #C9BEA5;
  text-decoration: none;
  font-size: 0.94rem;
}

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

/* ==========================================================================
   LEGAL FOOTER
   ========================================================================== */

.legal-footer {
  background: #1E1A12;
  border-top: 2px solid #D99A26;
}

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

.legal-footer p {
  color: #C9BEA5;
  font-size: 0.92rem;
}

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

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

@media (max-width: 620px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-header h1 {
    font-size: 2rem;
  }
}
