Does smoking near an Apple computer void its warranty, and how would Apple know?
Ordinary smoking near a Mac won't void the warranty. Heavy smoke can leave a residue inside the computer, and if that residue causes the problem, Apple can call it user damage rather than a defect and refuse warranty repair. Technicians can easily see and smell it, the same way it coats curtains and walls.