@import url("../assets/avistera-brand.css");

body.legal-page {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 30, 90, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, #0a0d2b 0%, #28235c 55%, #6b4a6e 100%);
  color: var(--text-secondary);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  margin: 0;
}
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 13, 43, 0.88);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.legal-nav a {
  color: var(--gold-mid);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-nav a:hover { text-decoration: underline; }
.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.legal-main h1 {
  font-family: Cinzel, serif;
  background: linear-gradient(180deg, #f5e6b8 0%, #e8c878 45%, #c9a14a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.legal-main h2 {
  font-family: Cinzel, serif;
  color: rgba(var(--gold-rgb), 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
}
.legal-main p, .legal-main li {
  line-height: 1.65;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.legal-main ul { padding-left: 1.25rem; }
.legal-notice {
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  background: rgba(var(--gold-rgb), 0.06);
}
.legal-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
}
.legal-footer a { color: var(--gold-mid); margin: 0 0.35rem; }

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.legal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.legal-form input,
.legal-form select,
.legal-form textarea {
  background: rgba(5, 6, 20, 0.75);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: #f3eed8;
  font: inherit;
}
.legal-form button {
  align-self: flex-start;
  background: linear-gradient(90deg, #c9a14a, #f5e6b8);
  color: #0a0d2b;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.legal-hint { font-size: 0.85rem; color: var(--gold-mid); margin-top: 0.5rem; }

.legal-lead {
  font-size: 0.9rem;
  color: rgba(220, 214, 236, 0.78);
  margin: -0.5rem 0 1rem;
  line-height: 1.55;
}
.legal-brand-note {
  font-size: 0.85rem;
  color: var(--gold-mid);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.legal-supplement {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.22);
}

/* Rechtstexte: Marken-Dunkelblau, gut lesbare helle Schrift */
.itrk-legal-host,
.legal-fallback {
  min-height: 12rem;
  background: rgba(8, 10, 36, 0.35);
  color: #ebe6f5;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  padding: 1.35rem 1.15rem 1.75rem;
  overflow: visible;
}
.legal-fallback {
  margin-top: 1.25rem;
}
.itrk-legal-host--fallback {
  display: none !important;
}
.itrk-legal-host--fallback + .legal-fallback,
.itrk-legal-host--fallback ~ .legal-fallback {
  margin-top: 0;
}
.itrk-legal-host .itrk-legaltext {
  width: 100% !important;
  max-width: 100%;
  display: block;
  background: transparent !important;
  color: #ebe6f5 !important;
}
.itrk-legal-host iframe {
  width: 100% !important;
  max-width: 100%;
  min-height: 70vh;
  border: 0;
  display: block;
  border-radius: 0.5rem;
  /* Cross-origin: Inhalt steuern wir nicht — Fallback nutzt Markenfarben */
  background: transparent;
}

.itrk-legal-host,
.itrk-legal-host .itrk-legaltext,
.legal-fallback,
.legal-fallback-body {
  color: #ebe6f5 !important;
  -webkit-text-fill-color: #ebe6f5 !important;
  background-image: none !important;
}
.itrk-legal-host h1,
.itrk-legal-host h2,
.itrk-legal-host h3,
.itrk-legal-host h4,
.legal-fallback h1,
.legal-fallback h2,
.legal-fallback h3,
.legal-fallback h4 {
  font-family: Cinzel, Georgia, serif !important;
  color: var(--gold-mid) !important;
  -webkit-text-fill-color: var(--gold-mid) !important;
  background: none !important;
  background-image: none !important;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600 !important;
}
.itrk-legal-host h1,
.legal-fallback h1 {
  font-size: 1.35rem !important;
  margin: 0 0 1.1rem !important;
  color: var(--gold-light) !important;
  -webkit-text-fill-color: var(--gold-light) !important;
}
.itrk-legal-host h2,
.legal-fallback h2 {
  font-size: 1.02rem !important;
  margin: 1.75rem 0 0.7rem !important;
}
.itrk-legal-host p,
.itrk-legal-host li,
.itrk-legal-host span,
.itrk-legal-host div,
.itrk-legal-host b,
.itrk-legal-host strong,
.legal-fallback p,
.legal-fallback li,
.legal-fallback span,
.legal-fallback div,
.legal-fallback b,
.legal-fallback strong {
  color: #ebe6f5 !important;
  -webkit-text-fill-color: #ebe6f5 !important;
  background: none !important;
  background-image: none !important;
  font-family: Inter, system-ui, sans-serif !important;
}
.itrk-legal-host p,
.itrk-legal-host li,
.legal-fallback p,
.legal-fallback li {
  line-height: 1.7 !important;
  font-size: 0.98rem !important;
  margin: 0 0 0.9rem !important;
  font-weight: 400 !important;
}
.itrk-legal-host b,
.itrk-legal-host strong,
.legal-fallback b,
.legal-fallback strong {
  color: #f5f1ff !important;
  -webkit-text-fill-color: #f5f1ff !important;
  font-weight: 600 !important;
}
.itrk-legal-host ul,
.legal-fallback ul,
.itrk-legal-host ol,
.legal-fallback ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.itrk-legal-host a,
.legal-fallback a {
  color: var(--gold-light) !important;
  -webkit-text-fill-color: var(--gold-light) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.itrk-legal-host a:hover,
.legal-fallback a:hover {
  color: #fff8e0 !important;
  -webkit-text-fill-color: #fff8e0 !important;
}
.legal-fallback-stand {
  font-size: 0.78rem !important;
  color: rgba(220, 214, 236, 0.55) !important;
  -webkit-text-fill-color: rgba(220, 214, 236, 0.55) !important;
  margin-top: 2rem !important;
}

