/* Legal Documents Responsive Stylesheet */
/* For LumiBunny / 问肤兔 */

:root {
  --primary-color: #6b5ce7;
  --text-color: #333;
  --text-secondary: #666;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --section-bg: #f9f9fb;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 0;
  margin: 0;
}

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

/* Header */
.header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 16px;
  margin-bottom: 8px;
}

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

/* Sections */
h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  text-align: justify;
}

/* Lists */
ul,
ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
}

th {
  background-color: var(--section-bg);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--section-bg);
}

/* Warning/Important boxes */
.warning-box {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}

.warning-box .icon {
  font-size: 20px;
  margin-right: 8px;
}

.warning-box h3 {
  color: #856404;
  margin-top: 0;
  margin-bottom: 8px;
}

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

/* Info box */
.info-box {
  background-color: #e7f3ff;
  border: 1px solid #b3d7ff;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}

.info-box h3 {
  color: #004085;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Contact section */
.contact-section {
  background-color: var(--section-bg);
  border-radius: 8px;
  padding: 20px;
  margin-top: 32px;
}

.contact-section h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 500;
  min-width: 80px;
}

.contact-value {
  color: var(--text-secondary);
}

.contact-value a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.lang-switcher:hover {
  background-color: var(--section-bg);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 16px 16px 40px;
  }

  .header {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .logo {
    font-size: 24px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 17px;
    margin-top: 24px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px;
  }

  .lang-switcher {
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --bg-color: #1a1a1a;
    --border-color: #333;
    --section-bg: #242424;
  }

  .warning-box {
    background-color: #3d3520;
    border-color: #6b5a00;
  }

  .warning-box h3,
  .warning-box p {
    color: #ffc107;
  }

  .info-box {
    background-color: #1a2733;
    border-color: #2a4a6b;
  }

  .info-box h3 {
    color: #6bb3ff;
  }
}

/* Print styles */
@media print {
  .lang-switcher {
    display: none;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
