/* Impressum page styles — matches main theme variables in style.css */
:root {
  /* fallback colors if variables not loaded */
  --primary-blue: #2563eb;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --border-color: #e5e7eb;
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Page layout */
body > section {
  max-width: 980px;
  margin: 4rem auto;
  padding: 2.25rem;
  background: linear-gradient(180deg, var(--bg-primary), #f8fafc);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  font-family: inherit;
}

/* Headings */
body > section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

body > section h2 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

/* Address */
address {
  display: inline-block;
  font-style: normal;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Links */
body > section a {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Liability list */
ol {
  margin-top: 0.5rem;
  margin-left: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

ol li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

ol li strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

/* Small note at bottom */
body > section p.note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.22s ease;
}
.back-link:hover {
  transform: translateY(-3px);
  color: var(--primary-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Back to Home Button */
.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.back-to-home-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.back-to-home-btn:hover::before {
  left: 100%;
}

.back-to-home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.back-to-home-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.back-to-home-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-to-home-btn:hover i {
  transform: scale(1.2) rotate(-10deg);
}

.back-to-home-btn span {
  position: relative;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  body > section {
    margin: 2rem 1rem;
    padding: 1.25rem;
  }
  body > section h1 {
    font-size: 1.6rem;
  }

  .back-to-home-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}
