:root {
  --sumup-blue: #3063E9;
  --sumup-blue-light: #e8f0ff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-subtle: #e5e7eb;
  --bg-soft: #f9fafb;
  --radius-card: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: var(--sumup-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header and navigation specific styles */
.nav-brand-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legal-page-main {
  padding: 3rem 0;
}

.footer-disclaimer {
  padding-top: 1rem;
}

.footer-disclaimer-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sumup-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--sumup-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sumup-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(48, 99, 233, 0.25);
}

.btn-primary:hover {
  background: #2551c0;
  box-shadow: 0 14px 28px rgba(48, 99, 233, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--sumup-blue);
  border: 1px solid var(--sumup-blue);
}

.btn-outline:hover {
  background: var(--sumup-blue-light);
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-kicker {
  color: var(--sumup-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #ecfdf3;
  color: #166534;
  font-weight: 500;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.hero-list li::before {
  content: "✓";
  color: var(--sumup-blue);
  font-weight: 700;
  margin-right: 0.4rem;
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.card p {
  margin: 0.25rem 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sumup-blue-light);
  color: var(--sumup-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.list-muted {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  background: #fff;
}

.faq-item[open] {
  border-color: var(--sumup-blue);
  background: #f1f5ff;
}

.faq-answer {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

form {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sumup-blue);
  box-shadow: 0 0 0 1px var(--sumup-blue-light);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-toggle-btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--sumup-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-panel {
  width: min(360px, 90vw);
  height: 460px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--sumup-blue), #2042a3);
  color: #fff;
}

.chat-header-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-header-sub {
  font-size: 0.78rem;
  opacity: 0.9;
}

.chat-close {
  background: transparent;
  border: none;
  color: #eff6ff;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.1rem 0.3rem;
}

.chat-messages {
  flex: 1;
  padding: 0.75rem 0.9rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f9fafb;
  scroll-behavior: smooth;
}

.chat-message {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  max-width: 90%;
}

.chat-message.user {
  margin-left: auto;
  text-align: right;
}

.chat-bubble {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
  line-height: 1.5;
}

.chat-bubble.user {
  background: var(--sumup-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-bubble a {
  color: var(--sumup-blue);
  text-decoration: underline;
  word-break: break-all;
}

.chat-bubble.user a {
  color: #fff;
}

.chat-input-area {
  border-top: 1px solid var(--border-subtle);
  padding: 0.55rem 0.8rem;
  background: #ffffff;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  resize: none;
  max-height: 90px;
}

.chat-send-btn {
  border-radius: 999px;
  border: none;
  background: var(--sumup-blue);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.chat-send-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.chat-status {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
}
