/* STILURI DOAR PENTRU FOOTER ȘI MODALE - Nu afectează restul paginii */

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-section {
  background-color: #2f2f31;
  color: var(--color-text-light, #ffffff);
  padding: 60px 0 40px 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Reset any inherited styles */
.footer-section * {
  box-sizing: border-box;
}

.footer-section .container {
  max-width: 1440px !important;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-text-light, #ffffff);
  padding: 40px 85px !important;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--color-text-light, #ffffff);
  margin-bottom: 40px;
}

.footer-column {
  background-color: #2f2f31;
  padding: 39px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-text-light, #ffffff);
}

.footer-column:last-child {
  border-right: none;
}

.footer-column .column-number {
  font-family: 'Geist Mono', 'Roboto Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: #4DB8A2;
  margin-bottom: 67px;
  display: block;
}

.footer-column .column-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 40px;
  color: var(--color-text-light, #ffffff);
  text-transform: lowercase;
}

.footer-column a {
  color: var(--color-text-light, #ffffff);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column .publications {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-column .publications a {
  display: block;
  margin-bottom: 0;
}

.footer-column .publications img {
  max-width: 167px;
  height: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--color-text-light, #ffffff);
  width: 100%;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom .legal-links a {
  color: var(--color-text-light, #ffffff);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-bottom .legal-links a:hover {
  text-decoration: underline;
}

.footer-bottom .copyright {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light, #ffffff);
  margin: 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.legal-modal-content {
    background-color: var(--color-background-light);
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-title {
    color: #28282A;
    font-family: "Geist Mono", monospace;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

.legal-modal-title span {
    color: #4DB8A2;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.legal-modal-close:hover {
    color: #F84141;
}

.legal-modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.legal-modal-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.legal-modal-body p {
    color: #28282A;
    font-family: var(--font-primary);
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 16px;
}

.legal-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

/* Despre Noi Modal - Special Buttons */
.btn-legal-secondary,
.btn-legal-primary {
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-text-dark);
}

.btn-legal-secondary {
    background: transparent;
    color: var(--color-text-dark);
}

.btn-legal-secondary:hover {
    background-color: rgba(77, 184, 162, 0.1);
}

.btn-legal-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-legal-primary:hover {
    background-color: #4EBAAA;
}

.pop-text {
    color: #28282A;
    font-family: Geist;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .footer-section {
    padding: 40px 0 20px 0;
  }
  .footer-section .container {
    padding: 20px !important;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-column {
    border-right: none;
    border-bottom: 1px solid var(--color-text-light, #ffffff);
    padding: 30px 20px;
  }
  .footer-column:last-child {
    border-bottom: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-column .column-number {
    font-size: 20px;
    margin-bottom: 40px;
  }
  .footer-column .column-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .footer-column a {
    font-size: 14px;
  }
  .footer-column .publications img {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
    .legal-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }

    .legal-modal-header {
        padding: 20px 24px 15px;
    }

    .legal-modal-title {
        font-size: 14px;
    }

    .legal-modal-body {
        padding: 20px 24px;
    }

    .legal-modal-body h2 {
        font-size: 32px;
    }

    .legal-modal-body h4 {
        font-size: 18px;
    }

    .legal-modal-body p {
        font-size: 16px;
    }

    .legal-modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-legal-secondary,
    .btn-legal-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-modal-header {
        padding: 16px 20px 12px;
    }

    .legal-modal-title {
        font-size: 13px;
    }

    .legal-modal-body {
        padding: 16px 20px;
    }

    .legal-modal-body h2 {
        font-size: 28px;
    }

    .legal-modal-body h4 {
        font-size: 16px;
    }

    .legal-modal-body p {
        font-size: 14px;
    }

    .pop-text {
        font-size: 16px;
    }
}
