/* ═══════════════════════════════════════════════════════════════
   OohSleep Legal & FAQ Pages Styles
   延续landing.css设计风格
   ═══════════════════════════════════════════════════════════════ */

/* Legal Page Layout */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
}

.legal-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200, 233, 114, 0.1);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c8e972;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.legal-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.legal-updated {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #c8e972;
  margin: 24px 0 12px;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-section li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.legal-section a {
  color: #c8e972;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: #72c8e9;
}

.legal-section strong {
  color: #fff;
  font-weight: 600;
}

/* Contact Box */
.contact-box {
  background: rgba(200, 233, 114, 0.08);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}

.contact-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Warning Box */
.warning-box {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.warning-box p {
  margin: 0;
  color: #ff9f7a;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.cookie-table th,
.cookie-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-table th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-table td {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* ═══ FAQ PAGE ═══ */
.faq-page .legal-header {
  margin-bottom: 40px;
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Category */
.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-category-title svg {
  width: 24px;
  height: 24px;
  color: #c8e972;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ Item */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(200, 233, 114, 0.3);
}

.faq-item[open] {
  background: rgba(200, 233, 114, 0.05);
  border-color: rgba(200, 233, 114, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question span {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #c8e972;
}

.faq-answer {
  padding: 0 24px 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 20px;
}

.faq-answer li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.faq-answer a {
  color: #c8e972;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-answer strong {
  color: #fff;
}

/* FAQ Contact Section */
.faq-contact {
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.08) 0%, rgba(114, 200, 233, 0.04) 100%);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 24px;
  margin-top: 48px;
}

.faq-contact h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.faq-contact p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

/* Footer active link */
.footer-links a.active {
  color: #c8e972;
}

.main-nav a.active {
  color: #c8e972;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
  }
  
  .legal-header h1 {
    font-size: 32px;
  }
  
  .legal-section h2 {
    font-size: 20px;
  }
  
  .legal-section h3 {
    font-size: 16px;
  }
  
  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
  
  .cookie-table {
    display: block;
    overflow-x: auto;
  }
  
  .faq-question {
    padding: 16px 20px;
  }
  
  .faq-question span {
    font-size: 15px;
  }
  
  .faq-answer {
    padding: 0 20px 20px;
  }
  
  .faq-contact {
    padding: 32px 24px;
  }
  
  .faq-contact h2 {
    font-size: 24px;
  }
}
