/* Shared styles for the legal pages. Matches index.html's palette and type. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  padding: 48px 24px 96px;
}

.doc {
  max-width: 680px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}

.back:hover { color: rgba(255, 255, 255, 0.8); }

h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.updated {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  margin-bottom: 40px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

p, li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 12px;
}

ul, ol { padding-left: 24px; }

li { margin-bottom: 8px; }

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

a { color: #007AFF; }

.lede {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.75);
}

th {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  border-left: 3px solid #007AFF;
  padding: 4px 0 4px 16px;
  margin: 20px 0;
}

.note p:last-child { margin-bottom: 0; }

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

/* Phones: the supplier table is the only element at risk of overflowing. */
@media (max-width: 480px) {
  body { padding: 32px 20px 72px; }
  table { font-size: 14px; }
  th { white-space: normal; }
  th, td { padding-right: 8px; }
}

@media (prefers-color-scheme: light) {
  body { background: #fff; color: #000; }
  .back { color: rgba(0, 0, 0, 0.45); }
  .back:hover { color: rgba(0, 0, 0, 0.75); }
  .updated { color: rgba(0, 0, 0, 0.45); }
  p, li, th, td { color: rgba(0, 0, 0, 0.7); }
  .lede { color: rgba(0, 0, 0, 0.85); }
  strong, th { color: #000; }
  th, td { border-bottom-color: rgba(0, 0, 0, 0.1); }
  .footer { border-top-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.35); }
}
