/* Component styles for the legal pages (Impressum, Datenschutz). Shared design tokens live in tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--petrol-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* atmosphere (same living background as the home page) */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background: var(--paper);
}
.atmosphere span {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
}
.b1 {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(99, 195, 209, 0.3), transparent 62%);
  animation: drift1 26s ease-in-out infinite;
}
.b2 {
  width: 46vw;
  height: 46vw;
  top: 36vh;
  left: -16vw;
  background: radial-gradient(circle, rgba(66, 64, 147, 0.18), transparent 62%);
  animation: drift2 32s ease-in-out infinite;
}
.b3 {
  width: 50vw;
  height: 50vw;
  bottom: -18vw;
  right: 4vw;
  background: radial-gradient(circle, rgba(138, 137, 194, 0.32), transparent 62%);
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4vw, 5vh) scale(1.08);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vw, -4vh) scale(1.1);
  }
}
@keyframes drift3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5vw, 3vh) scale(1.06);
  }
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- nav ---- */
.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border-radius: 100px;
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--sh-1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-glyph {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.brand-mark {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn-ghost {
  color: var(--petrol-700);
  background: var(--glass);
  border: 1px solid var(--glass-brd-2);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--glass-3);
  box-shadow: var(--sh-1);
  text-decoration: none;
}
.btn-ghost:hover svg {
  transform: translateX(-3px);
}

/* ---- content ---- */
.legal-main {
  padding-top: clamp(6.5rem, 12vw, 8.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.legal-head {
  max-width: 64rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol-600);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-400), transparent);
}
.legal-head h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-top: 1rem;
}
.legal-head .sub {
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 64rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}
.legal-content h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.6rem;
  margin-bottom: 0.75rem;
}
.legal-content h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.7rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  margin-bottom: 1rem;
  max-width: 78ch;
}
.legal-content ul {
  margin: 0.4rem 0 1.3rem 1.3rem;
  max-width: 78ch;
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content strong {
  color: var(--ink-2);
  font-weight: 700;
}
.legal-content a {
  word-break: break-word;
}

.org-name {
  font-size: 1.15rem;
}

.info-card {
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 3vw, 2rem);
  margin: 1.5rem 0;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.info-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.info-card p {
  margin-bottom: 0.6rem;
}
.info-card p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0 1.7rem;
  font-size: 0.92rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.legal-table th {
  text-align: left;
  vertical-align: top;
  width: 32%;
  padding: 0.7rem 0.95rem;
  color: var(--petrol-700);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid var(--line-2);
}
.legal-table td {
  padding: 0.7rem 0.95rem;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid var(--line-2);
  word-break: break-word;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ---- footer ---- */
.legal-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.legal-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 2rem;
}
.legal-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
}
.legal-foot-links a {
  color: var(--ink-2);
}
.legal-foot-links a:hover {
  color: var(--petrol-700);
}
.legal-foot-copy {
  font-size: 0.82rem;
  color: var(--ink-3);
}

@media (max-width: 560px) {
  .brand-mark {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
