/* AdSense slots, footer information links and privacy pages. */

.hb-ad {
  margin: 26px auto;
  max-width: 970px;
  text-align: center;
}

.hb-ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hb-ad ins.adsbygoogle {
  display: block;
  min-height: 120px;
}

/* Footer information row, kept below the notice/message pair. */
.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 4px;
  padding: 14px 20px 0;
  border-top: 1px solid var(--line);
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* About, contact and privacy pages. */
.legal {
  max-width: 820px;
}

.legal h1 {
  margin: 7px 0 12px;
  font-size: clamp(30px, 3.2vw, 42px);
}

.legal h2 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.85;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal .legal-updated {
  color: var(--muted);
  font-size: 12px;
}

.legal .notice {
  margin: 18px 0;
}

.legal a {
  text-decoration: underline;
}

/* Consent banner. */
.hb-consent {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(400px, calc(100vw - 36px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.6;
}

.hb-consent strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.hb-consent p {
  margin: 0 0 12px;
  color: var(--muted);
}

.hb-consent .hb-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hb-consent button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hb-consent button[data-consent="accept"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hb-consent a {
  font-size: 12px;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hb-ad {
    margin: 18px auto;
  }

  .hb-ad ins.adsbygoogle {
    min-height: 100px;
  }
}

@media (max-width: 600px) {
  .hb-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .hb-consent .hb-consent-actions button {
    flex: 1;
  }
}
