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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

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

h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 40px;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.menu-item {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.menu-item h2 {
  font-size: 1.5rem;
  color: #3498db;
  margin-bottom: 10px;
}

.menu-item p {
  color: #7f8c8d;
  font-size: 0.95rem;
}

.content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

.content h3 {
  font-size: 1.5rem;
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content p {
  margin-bottom: 15px;
  color: #555;
}

.content ul,
.content ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.content li {
  margin-bottom: 10px;
  color: #555;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: #2980b9;
}

.back-link::before {
  content: '← ';
  margin-right: 5px;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.lang-switch button {
  border: 1px solid #dfe6e9;
  background: #fff;
  color: #2c3e50;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-switch button:hover {
  background: #f7f9fb;
}

.lang-content {
  display: none;
}

.lang-content.is-active {
  display: block;
}

footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #ecf0f1;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* License page styles */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

.filter-row input,
.filter-row select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #dfe6e9;
  font-size: 1rem;
  background: #fff;
}

.small-note {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 10px;
}

.license-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.license-pill {
  background: #f7fbff;
  border: 1px solid #d6eaf8;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #2c3e50;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.license-table th,
.license-table td {
  border: 1px solid #ecf0f1;
  padding: 10px;
  vertical-align: top;
}

.license-table th {
  background: #f7f9fb;
  color: #2c3e50;
  font-weight: 600;
}

.license-table td {
  word-break: break-word;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 20px 15px;
  }

  .content {
    padding: 25px;
  }

  .menu {
    grid-template-columns: 1fr;
  }
}
