/* ==========================================================================
   Legal pages (Aviso Legal / Privacidad / Cookies) + Cookie consent
   Additive stylesheet: does not modify assets/css/main.css
   ========================================================================== */

/* ---- Simple top bar for standalone legal pages ---- */
.legal-topbar {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eef0f2;
}

.legal-topbar a {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #343a40;
  text-decoration: none;
}

.legal-topbar a:hover {
  color: #00ace6;
}

/* ---- Legal content layout ---- */
.legal-page {
  padding: 50px 0 70px;
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.legal-page .legal-updated {
  color: #6c757d;
  margin-bottom: 40px;
  font-size: 14px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
  color: #343a40;
  line-height: 1.75;
  margin-bottom: 15px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 20px;
}

.legal-page a {
  color: #00ace6;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  border: 1px solid #e4e7ea;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background-color: #f8f9fa;
  font-family: "Poppins", sans-serif;
}

.legal-box {
  background-color: #f8f9fa;
  border: 1px solid #e4e7ea;
  border-radius: 6px;
  padding: 20px 25px;
  margin: 20px 0;
}

/* ---- Footer legal links (index.html + legal pages) ---- */
.footer-legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0;
  margin: 0 0 15px;
}

.footer-legal-links li {
  margin: 0;
}

.footer-legal-links a,
.footer-legal-links button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: #343a40;
  text-decoration: underline;
  cursor: pointer;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: #00ace6;
}

/* ---- Cookie action buttons (used in the settings modal and in the
   blocked Vimeo embed placeholder) ---- */
.btn-cookie {
  border-radius: 4px;
  padding: 9px 18px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-cookie-outline {
  background: transparent;
  border-color: #f1f1f1;
  color: #f1f1f1;
}

.btn-cookie-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-cookie-primary {
  background-color: #00ace6;
  color: #fff;
}

.btn-cookie-primary:hover {
  background-color: #0092c7;
}

/* ---- Cookie settings modal ---- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.55);
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px 35px;
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6c757d;
}

.cookie-modal-dialog h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cookie-modal-dialog > p {
  font-size: 14px;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cookie-category {
  border-top: 1px solid #eef0f2;
  padding: 15px 0;
}

.cookie-category:last-of-type {
  border-bottom: 1px solid #eef0f2;
}

.cookie-category label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  cursor: pointer;
}

.cookie-category label input[disabled] {
  cursor: not-allowed;
}

.cookie-category p {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.cookie-modal-actions .btn-cookie-outline {
  background: transparent;
  border-color: #ced4da;
  color: #343a40;
}

.cookie-modal-actions .btn-cookie-outline:hover {
  background-color: #f1f3f5;
}

/* ---- Video preview (thumbnail + play button), shown before the cookie
   notice. Clicking it does not load Vimeo or set any cookie by itself;
   it only reveals the notice below. ---- */
.embed-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: none;
}

.embed-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.embed-preview:hover .embed-preview-play,
.embed-preview:focus .embed-preview-play {
  background-color: #00ace6;
  transform: translate(-50%, -50%) scale(1.08);
}

/* ---- Blocked third-party embed placeholder (Vimeo) ----
   .embed-container (main.css) uses the padding-bottom aspect-ratio trick
   and expects an absolutely positioned child filling it (like its iframe
   rule); the placeholder needs the same positioning to be visible. */
.embed-container .embed-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px;
  box-sizing: border-box;
  text-align: center;
  background-color: #f1f3f5;
  border: 1px dashed #ced4da;
  border-radius: 6px;
}

.embed-placeholder p {
  margin: 0;
  font-size: 14px;
  color: #495057;
}

@media screen and (max-width: 567px) {
  .cookie-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cookie {
    flex: 1;
  }
}
