.policies {
  padding: 60px 25px 40px 25px;
}

.policies h1 {
  font-size: 3rem;
  text-align: center;
  color: var(--mainText);
  margin-bottom: 40px;
}

.policies-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.policies button {
  flex-basis: calc(50% - 25px);
  border: none;
}

.custom-modal {
  padding: 10px 10px;
  width: 600px;
  height: 90%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background-color: var(--backgroundBlock);
}

.custom-modal i {
  position: sticky;
  left: 90%;
  top: 2%;
  font-size: 1.7rem;
  color: white;
}

.custom-modal i:hover {
  color: #afafaf;
  cursor: pointer;
}

.modal-heading {
  padding-top: 50px;
  text-align: center;
}

.modal-heading h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.links-wrapper {
  display: flex;
  column-gap: 10px;
  row-gap: 15px;
  flex-wrap: wrap;
}

.links-wrapper a {
  display: block;
  flex-basis: calc(50% - 5px);
  background-color: var(--secondaryText);
  display: flex;
  justify-content: center;
  align-items: center;
}

.links-wrapper a:hover {
  background-color: var(--buttonSelect);
}

/* dialog */
dialog::backdrop {
  background-color: hsla(198, 16%, 13%, 0.5);
}

@media (max-width: 735px) {
  .policies-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .links-wrapper a {
    flex-basis: calc(100% - 10px);
  }
}
