/* ============================================
   PIPERUN — German Industrial B2B SaaS
   Dark theme, amber/gold accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === VARIABLES === */
:root {
  --bg-deep:       #0b0b0e;
  --bg-surface:    #111116;
  --bg-raised:     #16161d;
  --bg-border:     #1e1e28;
  --amber:         #d4a853;
  --amber-dim:     #a07c35;
  --amber-glow:    rgba(212,168,83,0.10);
  --amber-subtle:  rgba(212,168,83,0.06);
  --text-primary:  #f0ede6;
  --text-secondary:#9a9a9e;
  --text-dim:      #5a5a62;
  --green:         #3ecf8e;
  --red:           #e85c5c;
  --container:     1160px;
  --section-py:    96px;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.6rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-secondary); }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--text-primary); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 20px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 120px 0 var(--section-py);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212,168,83,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__text .label { margin-bottom: 24px; }

.hero__headline {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__headline-accent {
  font-style: normal;
  color: var(--amber);
}

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 440px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-border);
}

.hero__stat { display: flex; flex-direction: column; gap: 4px; }

.hero__stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--bg-border);
}

/* ============================================
   HERO MOCKUP
   ============================================ */
.hero__mockup {
  position: relative;
}

.mockup-window {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,83,0.08);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--bg-border);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-border);
}
.mockup-dot:first-child { background: #e85c5c; }
.mockup-dot:nth-child(2) { background: #e8a853; }
.mockup-dot:nth-child(3) { background: #3ecf8e; }

.mockup-title {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  margin-left: 8px;
}

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.mockup-row--active { border-color: rgba(212,168,83,0.3); }
.mockup-row--dim { opacity: 0.4; }

.mockup-step {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber-dim);
  padding-top: 2px;
}

.mockup-from {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.mockup-email-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mockup-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.mockup-status {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
}

.mockup-status--sent { background: rgba(62,207,142,0.12); color: var(--green); }
.mockup-status--pending { background: rgba(212,168,83,0.12); color: var(--amber); }
.mockup-status--dim { background: var(--bg-border); color: var(--text-dim); }

.mockup-time { font-size: 0.65rem; color: var(--text-dim); }

.mockup-badge--reply {
  background: rgba(62,207,142,0.12);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  height: fit-content;
}

.mockup-meeting {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--amber-subtle);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 500;
}

.mockup-float {
  position: absolute;
  bottom: -16px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.mockup-float-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   WORKINGS
   ============================================ */
.workings {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--bg-border);
}

.workings__header {
  text-align: center;
  margin-bottom: 64px;
}

.workings__header h2 { margin-top: 16px; }

.workings__steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.step-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  border-color: rgba(212,168,83,0.25);
  box-shadow: 0 0 40px var(--amber-glow);
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-card p { font-size: 0.9rem; line-height: 1.65; }

.step-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.source-tag {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: 2px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Pipeline visual */
.workings__pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 28px 40px;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 32px;
}

.pipeline-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.pipeline-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pipeline-node--prospects .pipeline-num { color: var(--text-dim); }
.pipeline-node--emails .pipeline-num { color: var(--text-secondary); }
.pipeline-node--replies .pipeline-num { color: var(--amber); }
.pipeline-node--meetings .pipeline-num { color: var(--green); }

.pipeline-arrow {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: var(--bg-border);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--bg-border);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.features__header { margin-bottom: 64px; }
.features__header h2 { margin-top: 16px; }

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  overflow: hidden;
}

.feature-card {
  padding: 40px;
  background: var(--bg-surface);
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-raised); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--amber-subtle);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p { font-size: 0.88rem; line-height: 1.65; }

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--bg-border);
}

.pricing__header { text-align: center; margin-bottom: 64px; }
.pricing__header h2 { margin-top: 16px; }

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  border-color: rgba(212,168,83,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.price-card--featured {
  border-color: rgba(212,168,83,0.4);
  background: var(--bg-raised);
  box-shadow: 0 0 60px rgba(212,168,83,0.08);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}

.price-card__name {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 16px;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.price-card__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}

.price-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-border);
}

.price-card__features li:last-child { border-bottom: none; }

.check { color: var(--green); font-weight: 600; }

.price-card__footer {
  margin-top: auto;
}

.price-card__cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.price-card__cta:hover {
  background: var(--amber-subtle);
  color: var(--amber);
  border-color: rgba(212,168,83,0.3);
}

.price-card__cta--primary {
  background: var(--amber);
  color: var(--bg-deep);
  border-color: var(--amber);
  font-weight: 700;
}

.price-card__cta--primary:hover {
  background: #e8b94b;
  color: var(--bg-deep);
  border-color: #e8b94b;
}

.pricing__footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================
   VISION
   ============================================ */
.vision {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--bg-border);
  position: relative;
  overflow: hidden;
}

.vision__bg-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--bg-border) 20%, var(--amber-dim) 50%, var(--bg-border) 80%, transparent 100%);
  opacity: 0.4;
}

.vision__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.vision__quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 24px 0 32px;
  font-style: normal;
}

.vision__quote em {
  font-style: italic;
  color: var(--amber);
}

.vision__body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.vision__attributes {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.attr { text-align: center; }

.attr__value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}

.attr__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--bg-border);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 40px;
}

.footer__logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--text-secondary); }

.footer__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__dsgvo { color: var(--green); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__mockup { display: none; }
  .hero { min-height: auto; padding: 80px 0 64px; }

  .workings__steps { grid-template-columns: 1fr; }
  .workings__pipeline { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .pipeline-arrow { display: none; }
  .pipeline-node { padding: 8px 16px; }

  .features__grid { grid-template-columns: 1fr; }

  .pricing__grid { grid-template-columns: 1fr; }

  .vision__attributes { gap: 32px; }

  .footer__inner { flex-direction: column; }
  .footer__copy { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
  .hero__stat-divider { display: none; }
  .hero__stat { flex: 1 0 calc(33% - 16px); }
  .vision__attributes { flex-direction: column; gap: 24px; }
}

/* ============================================
   LEGAL PAGES — Impressum, Datenschutz, AGB, DPA
   ============================================ */

/* Nav bar for legal pages */
.legal-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.legal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.legal-nav__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--amber);
  text-decoration: none;
}
.legal-nav__cta {
  font-size: 0.85rem;
  padding: 8px 18px;
}

/* Legal page layout */
.legal-page {
  padding: 64px 0 96px;
  min-height: 70vh;
}
.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-page__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.legal-page__header-row .legal-page__title {
  margin-bottom: 8px;
}
.legal-page__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal-page__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* Section within legal pages */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--bg-border);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-size: 1.25rem;
  color: var(--amber);
  margin-bottom: 16px;
  font-family: 'Syne', sans-serif;
}
.legal-section h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 20px 0 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}
.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  color: var(--text-secondary);
  padding-left: 20px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-section li {
  margin-bottom: 6px;
}
.legal-section a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-note {
  background: var(--bg-raised);
  border-left: 3px solid var(--amber-dim);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Tables in legal pages */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0;
}
.legal-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-raised);
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-border);
  font-weight: 600;
}
.legal-table td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-border);
  vertical-align: top;
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* DPA parties layout */
.legal-dpa-parties {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.legal-dpa-party {
  flex: 1;
  min-width: 180px;
}
.legal-dpa-party__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.legal-dpa-party__value {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.legal-dpa-arrow {
  font-size: 1.5rem;
  color: var(--amber);
  flex-shrink: 0;
}

/* Abmeldung (unsubscribe) page */
.unsubscribe-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.unsubscribe-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
}
.unsubscribe-icon {
  margin-bottom: 24px;
}
.unsubscribe-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
}
.unsubscribe-body {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.unsubscribe-legal {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.unsubscribe-email {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-block;
  margin-top: 8px;
}
.unsubscribe-error {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--bg-border);
  padding: 20px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
}
.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept {
  background: var(--amber);
  color: #0b0b0e;
}
.cookie-btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
}
.cookie-btn--settings {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* Button variants for legal pages */
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; text-decoration: none; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: opacity 0.15s; border: none; font-size: 0.9rem; }
.btn--primary { background: var(--amber); color: #0b0b0e; }
.btn--outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--bg-border); }
.btn:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .legal-page { padding: 40px 0 64px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .unsubscribe-card { padding: 32px 20px; }
  .legal-dpa-parties { flex-direction: column; }
  .legal-dpa-arrow { transform: rotate(90deg); }
}
