.license {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.2rem 2rem 4rem;
}

.license-header {
  margin-bottom: 2.4rem;
}

.license-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.license-title {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.license-lead {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 56ch;
}

.license-section {
  margin-top: 2.2rem;
}

.license-section-description {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.3rem;
}

.license-section-description a.external {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.license-section-description a.external:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.license-section-description code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85em;
  background: var(--paper-deep);
  color: var(--ink);
  padding: 0.08em 0.38em;
  border-radius: 3px;
  font-weight: 500;
  border: 1px solid var(--paper-edge);
}

.license-body {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  white-space: pre;
}

.license-body code {
  font: inherit;
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  white-space: pre;
}

@media (max-width: 720px) {
  .license {
    padding: 1.6rem 1.2rem 3rem;
  }

  .license-header {
    margin-bottom: 1.8rem;
  }

  .license-body {
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    font-size: 0.72rem;
    padding: 1rem 1.2rem;
  }
}
