/* =====================================================================
   BrandCortex – Legal Pages Stylesheet (Impressum, Datenschutz, AGB)
   Modern, Premium Dark-Theme.
   ===================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-card: #0f1422;
  --bg-card-hover: #131a2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);
  --text: #e8ecf7;
  --text-soft: #b8c1d9;
  --muted: #8a94ac;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #22d3ee;
  --teal: #2dd4bf;
  --grad: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
  --grad-text: linear-gradient(135deg, #ffffff 30%, #b8c1d9 100%);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding: 0;
  margin: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px 24px;
}

/* Header Grid / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

@media (max-width: 640px) {
  header {
    padding: 0 20px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-svg {
  width: 32px;
  height: 32px;
  color: #00F0FF;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: #00F0FF;
  filter: blur(8px);
  opacity: 0.4;
  border-radius: 50%;
  animation: pulse-glow 2s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

.logo-text-container {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.logo-subtitle {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #white;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px;
    border-radius: 16px;
  }
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

/* Content Typography */
.content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  letter-spacing: -0.02em;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.content ul, .content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-soft);
}

.content li {
  margin-bottom: 8px;
}

.content strong {
  color: #fff;
  font-weight: 600;
}

.highlight-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Table Style for legal layout if needed */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-table td:first-child {
  font-weight: 700;
  color: #fff;
  width: 30%;
  padding-left: 0;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
