/* Styles for legal page - copied from politika-privatnosti to match payment_form responsiveness */

.pc-empty-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 1.4rem;
  color: #222;
}

.mobile-empty-container {
  padding: 18px;
  background: #fff;
  border-radius: 12px;
  margin: 16px;
  text-align: center;
  font-size: 1rem;
  color: #222;
}

/* Ensure page containers mirror payment_form behaviour */
#pageContainer {
  padding-bottom: 60px;
}

/* Mobile rules: hide desktop layout under 500px like payment pages */
@media (max-width: 499px) {
  #body {
    background-color: #fff !important;
  }
  footer {
    display: none !important;
  }
  #pageContainer {
    display: none;
  }
  .mobile-container {
    display: block;
  }
  #mobileContainerSection {
    fill: #fff;
    background: #fff;
    margin-inline: 15px;
  }
  #mobileContainerSection h2 {
    color: #000;
    font-size: 1.5rem !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: normal !important;
    padding-bottom: 10px;
  }
  #mobileContainerSection p {
    color: #000;
    font-size: 0.85rem !important  ;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: 21px !important;
    margin-top: 20px;
  }
  #mobileContainerSection span {
    display: block;
    position: relative;
    padding-left: 18px;
    color: #000;
    font-size: 0.85rem !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: 21px !important;
    margin-bottom: 5px;
  }

  #mobileContainerSection span::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
  }
  #mobileContainerSection h6 {
    color: #000 !important;
    font-size: 0.9rem !important;
    font-style: normal !important;
    font-weight: 600 !important;
    margin-bottom: 0px !important;
  }
  #mobileContainerSection .custom-card {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25),
      0 4px 4px 0 rgba(0, 0, 0, 0.25) inset;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
  }
  #mobileContainerSection h6 {
    color: #865ba6 !important;
    font-size: 1.2rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
  }

  /* Disable the pseudo-element for spans inside #secondHeader */
}

/* ===== DESKTOP VERSION STYLES (500px and above) ===== */
@media (min-width: 500px) {
  .mobile-container {
    display: none !important;
  }

  #body {
    background-color: #f5f5f5;
    min-height: 100vh;
  }

  #desktopReturnContainer {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    top: 100px;
  }

  #desktopSecondHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
  }

  #desktopSecondHeader .svg-c {
    width: 45px;
    height: 45px;
    display: grid;
    place-content: center;
    background-color: #865ba6;
    border-radius: 10px;
  }

  #desktopSecondHeader span {
    color: #000;
    font-size: 2rem;
    font-weight: 300;
  }

  .desktop-return-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  }

  .desktop-return-card h2 {
    color: #865ba6;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(134, 91, 166, 0.2);
  }

  .desktop-return-card h6 {
    color: #865ba6;
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .desktop-return-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
  }

  .desktop-return-list {
    margin: 20px 0;
    padding-left: 0;
  }

  .desktop-return-list span {
    display: block;
    position: relative;
    padding-left: 30px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .desktop-return-list span::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #865ba6;
    border-radius: 50%;
  }
}
