/* =========================================================
   PAGINI LEGALE
   Folosit de:
   - Politica de confidențialitate / Privacy Policy
   - Politica de cookies / Cookies Policy
   - Termeni și condiții / Terms and Conditions
   ========================================================= */

/* Header stabil și lizibil pe paginile legale */
.site-header {
  background: rgba(8, 10, 15, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* =========================================================
   CADRUL PAGINII
   ========================================================= */

.legal-page {
  min-height: 100vh;
  padding: 148px 24px 88px;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(192, 131, 41, 0.11),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(41, 81, 145, 0.10),
      transparent 28%
    ),
    linear-gradient(180deg, #090c12 0%, #0d1420 100%);
}

.legal-container {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 48px 48px 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075) 0%,
      rgba(255, 255, 255, 0.035) 100%
    );
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.legal-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(234, 190, 129, 0.92),
    transparent
  );
}

/* =========================================================
   INTRODUCERE
   ========================================================= */

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.legal-back:hover {
  color: var(--white);
  transform: translateX(-4px);
}

.legal-kicker {
  display: block;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-container h1 {
  max-width: 850px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.legal-updated {
  margin: 0 0 30px !important;
  color: rgba(234, 239, 248, 0.66) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.legal-intro {
  max-width: 860px;
  margin: 0 0 38px !important;
  color: rgba(244, 247, 252, 0.88) !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

/* =========================================================
   CONȚINUT
   ========================================================= */

.legal-section {
  max-width: 880px;
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 26px 0 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.86;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 6px 0 18px;
  padding-left: 24px;
}

.legal-section li {
  padding-left: 4px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 750;
}

.legal-section a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.legal-section a:hover {
  color: var(--white);
}

/* =========================================================
   CASETE DE INFORMAȚII
   ========================================================= */

.legal-note {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(234, 190, 129, 0.20);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: rgba(192, 131, 41, 0.08);
  color: rgba(244, 247, 252, 0.84);
  font-size: 15px;
  line-height: 1.78;
}

.legal-note strong {
  color: var(--gold-2);
}

/* =========================================================
   BUTON FINAL
   ========================================================= */

.legal-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 46px;
  padding: 0 24px;
  border: 1px solid rgba(234, 190, 129, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(192, 131, 41, 0.96),
    rgba(157, 99, 22, 0.96)
  );
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(192, 131, 41, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.legal-home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(192, 131, 41, 0.24);
  filter: brightness(1.05);
}

/* =========================================================
   RESPONSIVE SPECIFIC PAGINILOR LEGALE
   ========================================================= */

@media (max-width: 1024px) {
  .legal-page {
    padding-top: 126px;
  }

  .legal-container {
    padding: 42px 38px 46px;
  }

  .legal-container::before {
    left: 38px;
    right: 38px;
  }
}

@media (max-width: 820px) {
  .legal-page {
    padding-inline: 18px;
  }

  .legal-container {
    padding: 36px 28px 40px;
  }

  .legal-container::before {
    left: 28px;
    right: 28px;
  }

  .legal-intro {
    font-size: 17px !important;
  }
}

@media (max-width: 640px) {
  .legal-page {
    padding: 104px 14px 58px;
  }

  .legal-container {
    padding: 30px 20px 34px;
    border-radius: 22px;
  }

  .legal-container::before {
    left: 20px;
    right: 20px;
  }

  .legal-back {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .legal-kicker {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .legal-container h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 11vw, 46px);
  }

  .legal-updated {
    margin-bottom: 24px !important;
    font-size: 13px !important;
  }

  .legal-intro {
    margin-bottom: 32px !important;
    font-size: 16px !important;
    line-height: 1.76 !important;
  }

  .legal-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  .legal-section h2 {
    margin-bottom: 14px;
    font-size: 23px;
  }

  .legal-section h3 {
    font-size: 18px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.78;
  }

  .legal-note {
    padding: 18px;
  }

  .legal-home-button {
    width: 100%;
    margin-top: 38px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .legal-container {
    padding-inline: 17px;
  }

  .legal-container::before {
    left: 17px;
    right: 17px;
  }
}
