/* ============================================================
   Luxun — Shared Legal Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #FBF7F8;
  color: #1C1218;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1C1218;
  background-color: #FBF7F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: #DB2777;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #F472B6;
}

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

/* ---------- Top navigation ---------- */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F0DCE6;
  box-shadow: 0 4px 20px rgba(49, 16, 31, 0.05);
}

.legal-nav__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-nav__wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1C1218;
}

.legal-nav__wordmark span {
  color: #DB2777;
}

.legal-nav__home {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #F472B6;
  padding: 10px 18px;
  border-radius: 10px;
}

.legal-nav__home:hover {
  background-color: #DB2777;
  color: #FFFFFF;
}

/* Lotus flower mark (shared brand) */
.lotus {
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}

.lotus__petal {
  position: absolute;
  width: 15px;
  height: 12px;
  background: #F472B6;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  left: 9.5px;
  top: 3px;
  transform-origin: 50% 100%;
}

.lotus__petal:nth-child(1) { transform: rotate(0deg) translateY(-9px); }
.lotus__petal:nth-child(2) { transform: rotate(60deg) translateY(-9px); }
.lotus__petal:nth-child(3) { transform: rotate(120deg) translateY(-9px); }
.lotus__petal:nth-child(4) { transform: rotate(180deg) translateY(-9px); }
.lotus__petal:nth-child(5) { transform: rotate(240deg) translateY(-9px); }
.lotus__petal:nth-child(6) { transform: rotate(300deg) translateY(-9px); }

.lotus__inner {
  position: absolute;
  width: 13px;
  height: 9px;
  background: #DB2777;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  left: 10.5px;
  top: 8px;
  transform-origin: 50% 100%;
}

.lotus__inner:nth-of-type(1) { transform: rotate(30deg) translateY(-6px); }
.lotus__inner:nth-of-type(2) { transform: rotate(90deg) translateY(-6px); }
.lotus__inner:nth-of-type(3) { transform: rotate(150deg) translateY(-6px); }
.lotus__inner:nth-of-type(4) { transform: rotate(210deg) translateY(-6px); }
.lotus__inner:nth-of-type(5) { transform: rotate(270deg) translateY(-6px); }
.lotus__inner:nth-of-type(6) { transform: rotate(330deg) translateY(-6px); }

.lotus__center {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #31101F;
  border-radius: 50%;
  left: 13.5px;
  top: 13.5px;
}

/* ---------- Page header (div/header, never a section) ---------- */
.legal-header {
  padding: 140px 24px 64px;
  background: linear-gradient(135deg, #DB2777 0%, #F472B6 55%, #FBCFE8 100%);
  color: #FFFFFF;
  text-align: center;
}

.legal-header__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FBCFE8;
  background-color: #31101F;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 18px;
}

.legal-header__meta {
  font-size: 15px;
  color: #FDF1F5;
}

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

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

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

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

/* Scope isolation: keep section backgrounds clean */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  margin: -40px auto 0;
  max-width: 880px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.legal-toc__box {
  background: #FFFFFF;
  border: 1px solid #F0DCE6;
  border-left: 4px solid #F472B6;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 12px 32px rgba(49, 16, 31, 0.08);
}

.legal-toc__box h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #DB2777;
  margin-bottom: 16px;
}

.legal-toc__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.legal-toc__list a {
  color: #4A3644;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  display: inline-block;
}

.legal-toc__list a:hover {
  color: #DB2777;
}

.legal-toc__list a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F472B6;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Sections and prose ---------- */
.legal-body {
  padding: 56px 0 80px;
}

.legal-body section {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}

.legal-body h2 {
  font-size: 26px;
  color: #BE185D;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #FBCFE8;
}

.legal-body h3 {
  font-size: 19px;
  color: #1C1218;
  margin: 24px 0 12px;
}

.legal-body p {
  color: #4A3644;
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 20px 24px;
  color: #4A3644;
}

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

.legal-body strong {
  color: #1C1218;
}

.legal-body a {
  text-decoration: underline;
}

.legal-body .back-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #DB2777;
}

/* Address and contact callout */
.legal-callout {
  background: #FDF1F5;
  border: 1px solid #FBCFE8;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-callout p {
  margin-bottom: 6px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #FFFFFF;
  border-top: 4px solid #F472B6;
  padding: 44px 24px;
  text-align: center;
}

.legal-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer__links {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.legal-footer__links a {
  color: #4A3644;
  font-weight: 600;
  font-size: 15px;
}

.legal-footer__links a:hover {
  color: #DB2777;
}

.legal-footer p {
  color: #7A6672;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .legal-toc__list {
    grid-template-columns: 1fr;
  }
  .legal-header {
    padding: 124px 20px 56px;
  }
}
