/* ==========================================================================
   满座 POS · 法律文档页面样式 (privacy / terms)
   ========================================================================== */

/* ==================== Legal Page Layout ==================== */
.legal-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  background: var(--bg-alt);
  min-height: 100vh;
}

.legal-page .container {
  max-width: 840px;
}

/* ==================== Header ==================== */
.legal-header {
  text-align: center;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--text-1);
  margin: 16px 0 12px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-3);
}

/* ==================== Cards ==================== */
.legal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.legal-intro {
  margin-bottom: 32px;
}

.legal-intro p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 16px;
}
.legal-intro p:last-child {
  margin-bottom: 0;
}

/* ==================== Table of Contents ==================== */
.legal-toc {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #F0F8FF 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 82, 217, 0.1);
}

.legal-toc h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  list-style: none;
}

.legal-toc li::before {
  content: counter(toc) ".";
  font-weight: 700;
  color: var(--primary);
  margin-right: 8px;
}

.legal-toc a {
  font-size: 15px;
  color: var(--text-2);
  transition: color var(--transition);
}
.legal-toc a:hover {
  color: var(--primary);
}

/* ==================== Sections ==================== */
.legal-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-lighter);
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 14px;
}

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

.legal-section a {
  color: var(--primary);
  font-weight: 600;
}
.legal-section a:hover {
  text-decoration: underline;
}

/* ==================== Lists ==================== */
.legal-list {
  margin: 12px 0 20px 4px;
}

.legal-list li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.9;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-list strong {
  color: var(--text-1);
  font-weight: 600;
}

/* ==================== Callout Box ==================== */
.legal-callout {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.8;
}

.legal-callout strong {
  color: var(--warning);
}

/* ==================== Contact Box ==================== */
.legal-contact {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.legal-contact p {
  margin-bottom: 8px;
}
.legal-contact p:last-child {
  margin-bottom: 0;
}

/* ==================== About / Contact Page Extra ==================== */
.about-hero {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -150px; right: -100px;
}
.about-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.about-hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.value-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.value-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.value-card .value-emoji {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: all var(--transition);
}
.value-card:hover .value-emoji {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.08);
}
.value-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  margin: 0;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.milestone-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.milestone-date {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  padding-top: 2px;
}
.milestone-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.milestone-content p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

/* ==================== Contact Page ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.contact-info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-1);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-body strong {
  display: block;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 2px;
}
.contact-item-body span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-group label .required {
  color: var(--error);
  margin-left: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-1);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,82,217,0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-mini {
  margin-top: 32px;
}
.faq-mini-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-mini-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.faq-mini-item p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; }
  .milestone-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-hero { padding: 36px 24px; }
  .about-hero h1 { font-size: 26px; }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .legal-page {
    padding-top: calc(var(--nav-h) + 30px);
    padding-bottom: 40px;
  }

  .legal-card,
  .legal-section,
  .legal-toc {
    padding: 24px 20px;
  }

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

  .legal-header h1 {
    font-size: 28px;
  }
}
