html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.legal-page-shell {
  display: grid;
  gap: 1.35rem;
  max-width: 1180px;
}

.legal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem 1.9rem;
  border: 1px solid rgba(179, 193, 216, 0.28);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(84, 134, 245, 0.16), transparent 34%),
    linear-gradient(135deg, #f9fbff 0%, #eef3fb 100%);
  box-shadow: 0 22px 54px rgba(25, 43, 72, 0.08);
}

.legal-hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.legal-hero--privacy {
  background:
    radial-gradient(circle at top right, rgba(31, 138, 112, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fcfb 0%, #edf8f4 100%);
}

.legal-hero--terms {
  background:
    radial-gradient(circle at top right, rgba(55, 108, 214, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef2ff 100%);
}

.legal-hero--cookies {
  background:
    radial-gradient(circle at top right, rgba(201, 125, 55, 0.18), transparent 34%),
    linear-gradient(135deg, #fffaf5 0%, #fff2e3 100%);
}

.legal-kicker {
  display: inline-flex;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #355173;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.92rem;
  border: 1px solid rgba(165, 181, 205, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #17304f;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.legal-hero-link:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 120, 166, 0.55);
  background: rgba(255, 255, 255, 0.96);
  color: #102945;
}

.legal-hero-title {
  margin: 0;
  color: #18314f;
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
}

.legal-hero-lead {
  max-width: 780px;
  margin: 0.85rem 0 0;
  color: #5b7292;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  color: #173a63;
  box-shadow: inset 0 0 0 1px rgba(149, 167, 194, 0.18);
  font-size: 1.8rem;
}

.legal-document-surface {
  padding: clamp(1.3rem, 2vw, 2.1rem);
  border: 1px solid rgba(177, 191, 212, 0.24);
  border-radius: 1.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 24px 56px rgba(18, 33, 58, 0.08);
}

.legal-document-content {
  max-width: 940px;
  color: #415a7d;
  font-size: 0.99rem;
  line-height: 1.85;
}

.legal-document-content > :first-child {
  margin-top: 0;
}

.legal-document-content p {
  margin: 0 0 1.05rem;
}

.legal-document-content h2 {
  margin: 2rem 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(191, 204, 223, 0.58);
  color: #163253;
  font-size: 1.14rem;
  font-weight: 800;
}

.legal-document-content strong {
  color: #17304f;
  font-weight: 700;
}

.legal-document-content a {
  color: #1b5eb9;
  font-weight: 700;
  text-decoration: none;
}

.legal-document-content a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .legal-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.05rem;
  }

  .legal-hero-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-hero-icon {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.45rem;
  }

  .legal-document-surface {
    padding: 1rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.locale-switcher {
  position: relative;
}

.locale-switcher-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.locale-switcher-floating-wide {
  right: 1rem;
}

.locale-switcher-footer {
  display: inline-flex;
  margin-left: 2rem;
  justify-content: flex-start;
}

.locale-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.08);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.locale-switcher-floating .locale-switcher-toggle {
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  backdrop-filter: blur(14px);
  width: 3.35rem;
  padding-right: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
  justify-content: flex-start;
}

.locale-switcher-floating .locale-switcher-toggle::after {
  display: none;
}

.locale-switcher-floating .locale-switcher-toggle span {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.locale-switcher-footer .locale-switcher-toggle {
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

.locale-switcher-menu {
  min-width: 11rem;
  padding: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.locale-switcher-floating .locale-switcher-menu,
.locale-switcher-floating-wide .locale-switcher-menu {
  min-width: 10.5rem;
  right: 0;
  left: auto;
}

.locale-switcher-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.7rem;
  font-weight: 600;
}

.locale-switcher-item.active,
.locale-switcher-item:active {
  background: #eef2ff;
  color: #0f172a;
}

.locale-switcher-flag {
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .locale-switcher-floating {
    position: static;
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: min(100%, 34rem);
    margin-left: auto;
    margin-right: auto;
  }

  .locale-switcher-floating-wide {
    max-width: min(100%, 46rem);
  }

  .locale-switcher-floating .dropdown,
  .locale-switcher-floating-wide .dropdown {
    margin-left: auto;
  }

  .locale-switcher-floating .locale-switcher-toggle,
  .locale-switcher-floating-wide .locale-switcher-toggle {
    width: auto;
    padding-right: 0.8rem;
    overflow: visible;
  }

  .locale-switcher-floating .locale-switcher-toggle span,
  .locale-switcher-floating-wide .locale-switcher-toggle span {
    opacity: 1;
    width: auto;
    overflow: visible;
  }

  .locale-switcher-floating .locale-switcher-toggle::after,
  .locale-switcher-floating-wide .locale-switcher-toggle::after {
    display: inline-block;
  }

  .locale-switcher-floating .locale-switcher-menu,
  .locale-switcher-floating-wide .locale-switcher-menu {
    min-width: 11rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .locale-switcher-floating {
    max-width: min(94vw, 48rem);
  }

  .locale-switcher-floating-wide {
    max-width: min(95vw, 60rem);
  }
}
