:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
}

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

header {
  background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
  color: white;
  text-align: center;
  padding: 40px 0;
}

.app-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

header h1 {
  font-size: 2.2em;
  font-weight: 600;
  margin: 0 0 10px;
}

.subtitle {
  font-size: 1.1em;
  opacity: 0.9;
  font-weight: 400;
}

main {
  background: white;
  margin: -30px auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 40px;
}

.back-link {
  display: inline-block;
  color: #007AFF;
  text-decoration: none;
  margin-bottom: 30px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link::before {
  content: "← ";
}

.version-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
  color: #666;
  font-size: 0.95rem;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: #007AFF;
  text-align: center;
}

h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  color: #007AFF;
  font-weight: 600;
  border-bottom: 2px solid #007AFF;
  padding-bottom: 8px;
}

ul {
  padding-left: 1.2rem;
  margin: 16px 0;
}

li {
  margin: 8px 0;
}

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

strong {
  color: #333;
  font-weight: 600;
}

code {
  background: rgba(127, 127, 127, .12);
  padding: 2px 6px;
  border-radius: 4px;
}

.contact-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

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

.contact-email {
  color: #007AFF;
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  text-decoration: underline;
}

footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* ICP/MPS separator styles */
.separator {
  display: inline-block;
  margin: 0 8px;
  color: #999;
  font-weight: normal;
}

.separator::before {
  content: "|";
}

footer p {
  text-align: center;
}

.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  main {
    background: #2d2d2d;
    color: #e0e0e0;
  }

  .version-info,
  .contact-section {
    background: #3a3a3a;
    color: #e0e0e0;
  }

  .contact-section h2 {
    color: #007AFF;
  }

  strong {
    color: #f0f0f0;
  }

  h2 {
    color: #5AC8FA;
  }

  p,
  li {
    color: #e0e0e0;
  }

  footer {
    color: #aaa;
    border-top-color: #444;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header h1 {
    font-size: 1.8em;
  }

  main {
    padding: 30px 20px;
    margin: -20px auto 0;
  }

  h2 {
    font-size: 1.2em;
  }

  .lang-toggle {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.8em;
  }
}
