.legal-page {
  background-color: #FDF6F0;
  color: #3A2A20;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #E87A5D;
  text-decoration: none;
}

.legal-page a:hover {
  color: #4A2C22;
  text-decoration: underline;
}

.legal-header {
  background: #4A2C22;
  padding: 56px 24px 48px;
  text-align: center;
}

.legal-header .header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #F9D9CE;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.legal-header .header-brand:hover {
  color: #FFF8F2;
}

.legal-header .lantern-mark {
  position: relative;
  width: 24px;
  height: 32px;
  flex: none;
}

.legal-header .lantern-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background: #C95A41;
  border-radius: 2px;
  z-index: 2;
}

.legal-header .lantern-cap-top {
  top: 0;
}

.legal-header .lantern-cap-bottom {
  top: 20px;
}

.legal-header .lantern-body {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 17px;
  background: #E87A5D;
  border-radius: 50%;
  z-index: 1;
}

.legal-header .lantern-tassel {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: #D9A441;
}

.legal-header h1 {
  color: #FFF8F2;
  font-size: 2.2rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.25;
}

.legal-header .header-sub {
  color: #F9D9CE;
  margin-top: 14px;
  font-size: 1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

.toc {
  background: #F9D9CE;
  border-radius: 12px;
  padding: 26px 30px;
  margin: 44px 0;
}

.toc h2 {
  color: #4A2C22;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 30px;
}

.toc li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #E87A5D;
  color: #FFF8F2;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  border-radius: 6px;
}

.toc a {
  color: #4A2C22;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  color: #4A2C22;
  font-size: 1.55rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F9D9CE;
}

.legal-content h3 {
  color: #4A2C22;
  font-size: 1.15rem;
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 16px;
  color: #3A2A20;
}

.legal-content ul {
  margin: 0 0 16px 22px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #3A2A20;
}

.legal-content strong {
  color: #4A2C22;
}

.legal-footer {
  background: #4A2C22;
  padding: 40px 24px;
  text-align: center;
  margin-top: 24px;
}

.legal-footer p {
  color: #F9D9CE;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: #F9D9CE;
  text-decoration: none;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 1.7rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }
}
