/* ==========================================================================
   FengNing — Shared legal stylesheet (privacy.html and terms-of-service.html)
   These pages load ONLY this stylesheet.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: #FBF7F4;
  color: #33272C;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scope isolation: any background that a site stylesheet might apply to
   content sections is suppressed here. This scopes to the body content only
   and never touches the header or footer. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-header {
  background: #7A3B4E;
  color: #FFFFFF;
  padding: 0 0 52px;
}

.legal-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  font-size: 1.1rem;
}

.legal-brand .brand-petal {
  width: 16px;
  height: 24px;
  background: #E58BA0;
  border-radius: 50%;
}

.legal-nav a {
  color: #F5E6EA;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 22px;
}

.legal-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.legal-title-wrap {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 2.7rem;
  line-height: 1.15;
  margin: 0 0 12px;
}

.legal-updated {
  color: #F5E6EA;
  font-size: 0.95rem;
  margin: 0;
}

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

.legal-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-content .toc {
  position: sticky;
  top: 24px;
  background: #FFFFFF;
  border: 2px solid #E58BA0;
  border-radius: 14px;
  padding: 24px;
  font-size: 0.9rem;
}

.legal-content .toc h3 {
  color: #7A3B4E;
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.legal-content .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-content .toc li {
  margin: 0;
}

.legal-content .toc a {
  display: block;
  color: #7A3B4E;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #F0E2E6;
  font-weight: 600;
}

.legal-content .toc a:hover {
  color: #4A2733;
  text-decoration: underline;
}

.legal-main {
  background: #FFFFFF;
  border: 1px solid #F0E2E6;
  border-radius: 14px;
  padding: 40px;
  min-width: 0;
}

.legal-content section {
  padding: 0 0 40px;
  margin: 0 0 40px;
  border-bottom: 1px solid #F0E2E6;
  scroll-margin-top: 24px;
}

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

.legal-content section h2 {
  color: #7A3B4E;
  font-size: 1.4rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E58BA0;
}

.legal-content section p {
  color: #33272C;
  margin: 0 0 16px;
}

.legal-content section ul {
  color: #33272C;
  margin: 0 0 16px;
  padding-left: 24px;
}

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

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

.legal-footer {
  background: #33272C;
  color: #EAD8DC;
  padding: 32px 0;
  text-align: center;
}

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

.legal-footer p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

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

.legal-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .legal-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-content .toc {
    position: static;
  }

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

  .legal-main {
    padding: 28px 22px;
  }
}
