.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.legal-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 16px 0 18px;
  color: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.consent-checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0ea5e9;
}

.consent-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner__inner {
  width: min(100%, 1120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(10, 13, 15, 0.10);
  background: rgba(255, 255, 255, 0.96);
  color: #0e1419;
  box-shadow: 0 18px 42px rgba(10, 13, 15, 0.14);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cookie-banner__button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

body.legal-page {
  min-height: 100vh;
}

.legal-page .page-main {
  padding: 42px 0 64px;
}

.legal-page .legal-shell {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page .legal-hero,
.legal-page .legal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faf5 100%);
  border: 1px solid rgba(10, 13, 15, 0.10);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(10, 13, 15, 0.08);
}

.legal-page .legal-hero {
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

.legal-page .legal-breadcrumbs {
  margin-bottom: 14px;
  color: #5a6168;
  font-size: 14px;
}

.legal-page .legal-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page p,
.legal-page ul,
.legal-page ol {
  margin: 0;
}

.legal-page h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.legal-page .legal-lead {
  color: #5a6168;
  font-size: 17px;
  line-height: 1.7;
}

.legal-page .legal-stack {
  display: grid;
  gap: 18px;
}

.legal-page .legal-card {
  padding: clamp(24px, 3vw, 34px);
}

.legal-page .legal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.legal-page .legal-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.legal-page .legal-card p + p,
.legal-page .legal-card ul,
.legal-page .legal-card ol,
.legal-page .legal-card h3 {
  margin-top: 14px;
}

.legal-page .legal-card p,
.legal-page .legal-card li {
  color: #2e3439;
  font-size: 15px;
  line-height: 1.75;
}

.legal-page .legal-card ul,
.legal-page .legal-card ol {
  padding-left: 20px;
}

.legal-page .legal-card li + li {
  margin-top: 8px;
}

.legal-page .legal-note {
  color: #5a6168;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: space-between;
  }

  .legal-page .page-main {
    padding: 24px 0 44px;
  }

  .legal-page .legal-hero,
  .legal-page .legal-card {
    border-radius: 20px;
  }
}
