/* Shared styles for EmailVanish content pages (guides, about, contact, terms, privacy).
   The homepage and premium page keep their own inline styles. */
@font-face {
  font-family: 'Ubuntu';
  src: url('/Ubuntu.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Ubuntu, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(to top, #e9e9e9 1%, #333333 100%);
  color: #1d1f23;
}

a { color: #b30000; }
a:hover { color: #7a0000; }

.site-header, .site-footer {
  background: #343a44;
  color: #fff;
}
.site-header .inner, .site-footer .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header img, .site-footer img { display: block; height: 64px; width: auto; }
.site-nav a, .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  white-space: nowrap;
}
.site-nav a:hover, .footer-links a:hover { text-decoration: underline; color: #fff; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid #cc0000; padding-bottom: 2px; }

main.page {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 28px auto 40px;
  padding: 0 16px;
}

.card {
  background: #f9f9f9;
  border: 4px solid #cc0000;
  border-radius: 10px;
  padding: 28px 32px;
  line-height: 1.65;
  font-size: 1.04rem;
}
.card h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
.card h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.card h3 { font-size: 1.12rem; margin: 22px 0 6px; }
.card p, .card li { color: #25282d; }
.card ul, .card ol { padding-left: 1.3em; }
.card li { margin: 4px 0; }
.meta { color: #666; font-size: 0.9rem; margin: 0 0 20px; }
.lead { font-size: 1.12rem; color: #33363b; }

.breadcrumb { font-size: 0.9rem; margin-bottom: 12px; color: #555; }
.breadcrumb a { color: #555; }

.callout {
  border-left: 4px solid #cc0000;
  background: #fff;
  padding: 12px 16px;
  margin: 18px 0;
  border-radius: 0 6px 6px 0;
}
.callout.good { border-left-color: #1f8a4c; }

.example {
  background: #fff;
  border: 1px solid #d5d7db;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-x: auto;
  line-height: 1.5;
}

table.compare { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; background: #fff; }
table.compare th, table.compare td { border: 1px solid #d5d7db; padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare th { background: #343a44; color: #fff; }
.table-wrap { overflow-x: auto; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid #d5d7db;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1d1f23;
}
.guide-card:hover { border-color: #cc0000; color: #1d1f23; }
.guide-card strong { display: block; margin-bottom: 4px; color: #b30000; }
.guide-card span { font-size: 0.92rem; color: #555; }

.cta {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.cta:hover { background: #a30000; color: #fff; }

.related { margin-top: 36px; padding-top: 18px; border-top: 1px solid #ddd; }

.site-footer .inner { flex-direction: column; text-align: center; padding: 18px 16px; }
.footer-links { line-height: 2; }
.footer-note { font-size: 0.85rem; color: #c9ccd2; margin: 6px 0 0; }

/* contact form */
.contact-form label { display: block; margin: 14px 0 4px; font-weight: bold; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px; border: 1px solid #bbb; border-radius: 6px; font: inherit;
}
.contact-form button {
  margin-top: 14px; background: #cc0000; color: #fff; border: 0; border-radius: 6px;
  padding: 10px 20px; font: inherit; font-weight: bold; cursor: pointer;
}
#form-status { margin: 10px 0; font-weight: bold; }

@media (max-width: 640px) {
  .card { padding: 20px 18px; font-size: 1rem; }
  .card h1 { font-size: 1.6rem; }
  .site-header .inner { justify-content: center; }
  .site-header img { height: 48px; }
  .site-nav { text-align: center; line-height: 2; }
}

#form-status.success { color: #1f8a4c; }
#form-status.error { color: #b30000; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
