/* ---------- Alap beállítások és háttér ---------- */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

body {
  background: url("./images/pc.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* Sötét overlay a háttéren */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

/* Mobilos háttérkép */
@media (max-width: 768px) {
  body {
    background: url("./images/telefon.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}

/* Fő tartalom az overlay felett */
main {
  position: relative;
  z-index: 1;
  padding: 1em;
}

/* ---------- Tájékoztató doboz (Glassmorphism kártya) ---------- */
.legal-box {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  max-width: 680px;
  margin: 3em auto 2em auto;
  padding: 2.5em 2em;
  border-radius: 1.2em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.legal-box h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.6rem;
  color: #000;
}

.legal-box h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.3em;
  color: #000;
  text-align: left; /* A címek balra zártak maradnak */
}

/* Sorkizárt bekezdések automatikus elválasztással */
.legal-box p {
  margin: 0.6em 0;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Felsorolások formázása */
.legal-box ul {
  list-style-type: disc;
  margin: 0.5em 0 1em 1.4em;
  padding: 0;
}

.legal-box ul li {
  margin: 0.3em 0;
  font-size: 0.92rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Linkek a szövegen belül */
.legal-box a {
  color: #0056b3;
  text-decoration: underline;
}

/* ---------- Vissza gomb ---------- */
.back-btn-wrapper {
  margin-top: 2.2em;
  text-align: center;
}

.back-btn {
  display: inline-block;
  padding: 0.7em 1.5em;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0.8em;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ---------- Lábléc ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2em;
  padding-bottom: 1.5em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px #000;
}

/* ---------- Mobil nézet ---------- */
@media (max-width: 768px) {
  .legal-box {
    margin: 1.5em auto;
    padding: 1.5em 1.2em;
  }

  .legal-box h2 {
    font-size: 1.35rem;
  }

  .legal-box h3 {
    font-size: 1.05rem;
  }

  /* Mobilon a szűk képernyő miatt a sorkizárás néha túl nagy réseket csinál, 
     de a hyphens: auto szépen kezeli */
}