/* Shared styles for the standalone "static" pages on mapshaper.org
 * (sponsor.html, privacy.html, terms.html). These pages live outside
 * the docs build pipeline and outside the web app's own stylesheet, so
 * they each used to inline their own copy of these rules; this file
 * consolidates them.
 */

@font-face {
  font-family: 'SourceSans3';
  src: url('SourceSans3-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f8fdff;
  font: 16px/1.55 'SourceSans3', Arial, sans-serif;
  color: #333;
}

a { color: #10699b; }
a:hover { color: #1A6A96; }

/* --- Header ---------------------------------------------------------- */

.page-header {
  background-color: #1385B7;
  color: white;
  padding: 0 11px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mapshaper-logo,
.mapshaper-logo:hover {
  font-weight: 600;
  font-size: 17px;
  color: white;
  text-decoration: none;
}

.mapshaper-logo .logo-highlight {
  color: #ffa;
}

.header-back {
  color: white;
  text-decoration: none;
  font-size: 14px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.header-back:hover {
  background-color: #1A6A96;
  color: white;
}

/* --- Page body ------------------------------------------------------- */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1 {
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 12px;
  color: #222;
}

h2 {
  font-weight: 600;
  font-size: 20px;
  margin: 32px 0 12px;
  color: #222;
}

p { margin: 0 0 14px; }

ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

ul li { margin-bottom: 6px; }

.updated {
  color: #888;
  font-size: 14px;
  margin: 0 0 28px;
}

.footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e0e8ec;
  font-size: 14px;
  color: #777;
}

.footer-note a { color: #777; }

/* --- Sponsor-page extras --------------------------------------------- */

.tagline {
  font-size: 17px;
  color: #555;
  margin: 0 0 32px;
}

.sponsor-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background-color: #1385B7;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 3px;
  transition: background-color 0.15s;
}

.btn:hover {
  background-color: #1A6A96;
  color: white;
}

.btn.btn-secondary { background-color: #444; }
.btn.btn-secondary:hover { background-color: #222; }

.sponsor-note {
  font-size: 14px;
  color: #666;
  margin: 0 0 32px;
}

ul.support-list {
  padding-left: 20px;
  margin: 8px 0 24px;
}

ul.support-list li { margin-bottom: 6px; }

.feedback-cta {
  background-color: #fff;
  border-left: 3px solid #1385B7;
  padding: 14px 18px;
  margin: 24px 0;
}

.signature {
  margin-top: 32px;
  color: #555;
  font-style: italic;
}

/* --- Small screens --------------------------------------------------- */

@media (max-width: 480px) {
  main { padding: 24px 18px 60px; }
  h1 { font-size: 26px; }
  .sponsor-buttons { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
