/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 10px;
  padding: 14px 20px 16px;
  background: var(--sidebar);
  border-top: none;
  text-align: center;
}

body.home-page .site-footer {
  margin-top: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.footer-center {
  flex: 1;
  text-align: center;
  transform: none;
}

.footer-text {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-button {
  display: inline-block;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.footer-button:hover {
  transform: translateY(-1px);
}

.footer-back {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.footer-source {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-source a {
  color: var(--accent-light);
  text-decoration: none;
}

.footer-source a:hover {
  text-decoration: underline;
}

.project-promo-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-promo-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-promo-footer a {
  color: var(--accent-light);
  font-weight: 700;
}

.project-promo-footer a:hover {
  text-decoration-thickness: 2px;
}

/* =========================
   OWNER LICENSE + REMINDERS
========================= */

.owner-license-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
}

.owner-license-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.owner-license-header h2 {
  margin: 2px 0 8px;
}

.owner-license-header p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.owner-license-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.owner-license-scroll {
  min-height: 180px;
  max-height: 52vh;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.license-copy h2,
.license-copy h3 {
  margin-top: 1.2em;
  margin-bottom: 0.45em;
}

.license-copy h2:first-child {
  margin-top: 0;
}

.license-copy p,
.license-copy blockquote {
  line-height: 1.55;
}

.license-copy blockquote {
  margin: 0.8em 0;
  padding: 0.65em 0.9em;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.owner-license-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.owner-license-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 610px;
  line-height: 1.4;
}

.owner-license-check input {
  flex: 0 0 auto;
  margin-top: 0.2em;
}

.owner-license-reminder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.owner-license-reminder-links a,
.license-page-support a {
  color: var(--accent-light);
  font-weight: 700;
}

.license-page-shell {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.license-page-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.license-page-header h1,
.license-page-header p {
  margin-top: 0;
}

.license-page-support {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .owner-license-overlay {
    padding: 10px;
  }

  .owner-license-dialog {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .owner-license-scroll {
    max-height: 48vh;
  }

  .owner-license-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-license-actions button {
    width: 100%;
  }

  .license-page-shell {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 16px;
  }
}
