/*
 * Plugin Footer + Legal Overlay Styles
 * Nur für Plugin-Templates (wishpage, thankyou, chat-page).
 * Kein Landing-Page-Ballast – nur was der Footer und das Overlay brauchen.
 */

@import url('fonts.css');

/* CSS-Token (Overlay nutzt --wfy-bg-secondary) */
:root {
  --wfy-bg-secondary: #0b0907;
}

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

footer {
  position: relative;
  z-index: 2;
  padding: 40px 24px 60px;
  text-align: center;
  color: var(--w4y-footer-text, rgba(255, 247, 235, 0.46));
  font-size: 0.85rem;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 14px;
}

.footer-link {
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--w4y-footer-link, rgba(255, 248, 238, .32));
  text-decoration: none;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--w4y-link, rgba(201, 169, 110, .65));
}

.footer-copy {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--w4y-footer-link, rgba(255, 248, 238, .38));
  margin: 0;
}

/* ==========================================================================
   LEGAL OVERLAY (BOTTOM SHEET)
   ========================================================================== */

#wt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9988;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
}

#wt-backdrop[hidden] { display: none; }

#wt-overlay {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 9990;
  width: 100%;
  max-width: 860px;
  height: 90vh;
  border-radius: 18px 18px 0 0;
  background: var(--wfy-bg-secondary);
  border-top: 1px solid rgba(201, 169, 110, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#wt-overlay[hidden] { display: none; }

#wt-overlay.wt-enter {
  animation: wt-slide-up .3s cubic-bezier(.22, 1, .36, 1) forwards;
}

#wt-overlay.wt-leave {
  animation: wt-slide-down .25s ease-in forwards;
}

@keyframes wt-slide-up {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}

@keyframes wt-slide-down {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(100%); }
}

.wt-overlay-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 248, 238, .06);
  background: #0e0b07;
}

#wt-close {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 248, 238, .07);
  border: 1px solid rgba(255, 248, 238, .12);
  border-radius: 20px;
  padding: 7px 14px 7px 10px;
  color: rgba(255, 248, 238, .75);
  font-family: Inter, sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
}

#wt-close:hover { background: rgba(255, 248, 238, .13); }

#wt-title {
  flex: 1;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: rgba(255, 248, 238, .4);
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wt-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 60px;
  font-family: Inter, sans-serif;
  color: rgba(255, 248, 238, .72);
  line-height: 1.75;
  font-size: 15px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.wt-page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: rgba(255, 248, 238, .92);
  margin: 0 0 32px;
  line-height: 1.25;
}

.wt-body a { color: rgba(201, 169, 110, .8); }

.wt-body h1, .wt-body h2, .wt-body h3,
.wt-body h4, .wt-body h5, .wt-body h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: rgba(255, 247, 235, .92);
  line-height: 1.25;
  margin: 2em 0 .6em;
}
.wt-body h1 { font-size: 1.7rem; }
.wt-body h2 { font-size: 1.35rem; }
.wt-body h3 { font-size: 1.1rem; }
.wt-body h4 { font-size: 1rem; }

.wt-body p  { margin: 0 0 1em; }
.wt-body strong { color: rgba(255, 247, 235, .9); }
.wt-body em     { color: rgba(255, 247, 235, .75); }
.wt-body hr {
  border: none;
  border-top: 1px solid rgba(255, 248, 238, .08);
  margin: 2em 0;
}

.wt-body ul, .wt-body ol { padding-left: 1.5em; margin: 0 0 1em; }
.wt-body li { margin-bottom: .4em; }
.wt-body ul { list-style: disc; }
.wt-body ol { list-style: decimal; }

.wt-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.2em 0; }
.wt-body th {
  text-align: left; padding: 8px 12px; font-weight: 600;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(201, 169, 110, .65);
  border-bottom: .5px solid rgba(201, 169, 110, .2);
}
.wt-body td {
  padding: 8px 12px;
  border-bottom: .5px solid rgba(255, 248, 238, .05);
  vertical-align: top;
}

.wt-loading, .wt-error {
  text-align: center;
  color: rgba(255, 248, 238, .3);
  padding: 40px 0;
  letter-spacing: .05em;
}

@media (max-width: 640px) {
  #wt-content { font-size: .9rem; }
}
