/* ============================================================
   XUEZHANGLIANG — legal pages stylesheet (privacy / terms)
   Loaded ONLY by privacy.html and terms-of-service.html
   Dark rooftop-market palette
   ============================================================ */

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

.legal-page{
  background-color:#1B1614;
  color:#E2D9CD;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:Georgia,"Times New Roman",serif;
  color:#FAF5EC;
  line-height:1.2;
  font-weight:700;
}

p{margin:0 0 16px;}
a{color:#C96F4A;text-decoration:none;}
a:hover{text-decoration:underline;}
ul,ol{margin:0 0 16px;padding-left:26px;}

/* ---------- legal header (solid near-black, chalk title) ---------- */
.legal-header{
  background-color:#120E0C;
  border-bottom:1px solid #3A3029;
}
.legal-header .container{
  max-width:920px;
  margin:0 auto;
  padding:46px 24px 40px;
}
.legal-header .brand-line{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  font-weight:700;
  letter-spacing:0.14em;
  color:#FAF5EC;
}
.legal-header .brand-line:hover{color:#FAF5EC;text-decoration:none;}
.legal-header .brand-glyph{
  position:relative;
  display:inline-block;
  flex:none;
  width:22px;
  height:11px;
  background:#C96F4A;
}
.legal-header .brand-glyph::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:7px;
  height:7px;
  background:#C96F4A;
  border-radius:0 0 7px 7px;
  box-shadow:7.5px 0 0 #C96F4A,15px 0 0 #C96F4A;
}
.legal-header .page-kind{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.26em;
  text-transform:uppercase;
  color:#C96F4A;
  margin:26px 0 10px;
}
.legal-header .page-kind::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:10px;
  background:#8FA37E;
  vertical-align:middle;
  border-radius:50%;
}
.legal-header h1{
  font-size:38px;
  color:#FAF5EC;
  margin-bottom:12px;
}
.legal-header .header-note{
  color:#A79C90;
  font-size:15px;
  margin:0;
}
.legal-header .home-link{
  display:inline-block;
  margin-top:20px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.05em;
  color:#F0EAE2;
  border-bottom:2px solid #C96F4A;
  padding-bottom:2px;
}
.legal-header .home-link:hover{
  color:#FAF5EC;
  border-bottom-color:#8FA37E;
  text-decoration:none;
}

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

/* scope isolation: never style section backgrounds outside the legal content */
.legal-page .legal-content section{
  background-color:transparent !important;
}

.legal-content .legal-toc{
  margin:34px 0 10px;
  padding:24px 28px;
  background-color:#26201C;
  border:1px solid #3A3029;
  border-top:3px solid #C96F4A;
  border-radius:8px;
}
.legal-toc .toc-title{
  font-size:12px;
  font-weight:700;
  letter-spacing:0.24em;
  text-transform:uppercase;
  color:#8FA37E;
  margin-bottom:14px;
}
.legal-toc ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:toc;
}
.legal-toc li{
  counter-increment:toc;
  margin:0 0 8px;
  padding-left:30px;
  position:relative;
}
.legal-toc li::before{
  content:counter(toc,decimal-leading-zero);
  position:absolute;
  left:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  color:#C96F4A;
}
.legal-toc li:last-child{margin-bottom:0;}
.legal-toc a{
  color:#F0EAE2;
  font-size:15px;
  border-bottom:1px solid #3A3029;
}
.legal-toc a:hover{
  color:#FAF5EC;
  border-bottom-color:#C96F4A;
  text-decoration:none;
}

.legal-content .legal-section{
  margin:0;
  padding:38px 0 30px;
  border-bottom:1px solid #3A3029;
  scroll-margin-top:24px;
}
.legal-content .legal-section:last-child{border-bottom:none;}
.legal-content h2{
  font-size:26px;
  color:#FAF5EC;
  margin:0 0 16px;
  padding-left:18px;
  border-left:4px solid #C96F4A;
}
.legal-content h3{
  font-size:19px;
  color:#FAF5EC;
  margin:22px 0 10px;
}
.legal-content p{
  color:#E2D9CD;
  font-size:16px;
  margin:0 0 16px;
}
.legal-content ul li,
.legal-content ol li{
  color:#E2D9CD;
  font-size:16px;
  margin-bottom:8px;
}
.legal-content .intro{
  color:#F0EAE2;
  font-size:17px;
  padding:34px 0 6px;
}
.legal-content strong{color:#FAF5EC;font-weight:700;}
.legal-content em{color:#F0EAE2;}

/* ---------- legal footer ---------- */
.legal-footer{
  background-color:#120E0C;
  border-top:1px solid #3A3029;
  margin-top:40px;
}
.legal-footer .container{
  max-width:920px;
  margin:0 auto;
  padding:30px 24px 28px;
  text-align:center;
}
.legal-footer .footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:22px;
  margin-bottom:18px;
}
.legal-footer .footer-links a{
  color:#F0EAE2;
  font-size:15px;
  border-bottom:2px solid transparent;
  padding-bottom:3px;
}
.legal-footer .footer-links a:hover{
  color:#FAF5EC;
  border-bottom-color:#C96F4A;
  text-decoration:none;
}
.legal-footer .footer-line{
  color:#A79C90;
  font-size:14px;
  line-height:1.9;
  margin:0;
}
.legal-footer .footer-line a{color:#A79C90;border-bottom:1px solid #3A3029;}
.legal-footer .footer-line a:hover{color:#C96F4A;border-bottom-color:#C96F4A;text-decoration:none;}
.legal-footer .sep{margin:0 8px;}

/* ---------- responsive ---------- */
@media (max-width:720px){
  .legal-header h1{font-size:30px;}
  .legal-content .legal-toc{padding:20px;}
  .legal-content h2{font-size:23px;}
}
