/* Avisos de privacidad — estilos propios de /avisos-de-privacidad/ y /en/privacy-notices/.
   Se apoyan en las variables y fuentes de styles.css (Inter/Sora); sin recursos externos. */
.avisos-page {
  --header-h: 96px;
}
.avisos-page .page-head {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}
.avisos-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.avisos-page .breadcrumb a:hover {
  color: var(--violet);
}
.avisos-page .breadcrumb .current {
  color: var(--indigo);
  font-weight: 600;
}
.avisos-page .page-head h1 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.avisos-page .page-head .lede {
  max-width: 640px;
  color: var(--ink-soft);
}
.avisos-page .legal-note {
  max-width: 640px;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  background: var(--bg-2);
  font-size: 14.5px;
  color: var(--ink);
}

/* Layout */
.avisos-page .layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}
.avisos-page .sidebar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  padding: 24px 0;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
}
.avisos-page .sidebar-group-label {
  margin: 0 0 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.avisos-page .sidebar-list {
  list-style: none;
}
.avisos-page .sidebar-list li {
  margin-bottom: 2px;
}
.avisos-page .sidebar-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.avisos-page .sidebar-link:hover {
  background: var(--bg-2);
}
.avisos-page .sidebar-link.active {
  background: var(--bg-2);
  color: var(--indigo);
  font-weight: 700;
}
.avisos-page .mobile-tabs {
  display: none;
}

/* Documentos */
.avisos-page .content {
  min-width: 0;
  padding-top: 24px;
}
.avisos-page .doc {
  scroll-margin-top: calc(var(--header-h) + 16px);
  margin-bottom: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.avisos-page .doc:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
/* Con JS un solo aviso a la vez: el panel visible no necesita separador. */
.avisos-page .doc[role="tabpanel"] {
  margin-bottom: 0;
  border-bottom: none;
}
.avisos-page .doc[hidden] {
  display: none;
}
.avisos-page .doc-header {
  margin-bottom: 28px;
}
.avisos-page .doc-header h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.avisos-page .doc-body p,
.avisos-page .doc-body ul {
  max-width: 70ch;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.avisos-page .doc-body ul {
  padding-left: 22px;
}
.avisos-page .doc-body li {
  margin-bottom: 8px;
}
.avisos-page .doc-body a {
  color: var(--violet);
  text-decoration: underline;
  word-break: break-word;
}
.avisos-page .doc-body .legal-label {
  margin: 24px 0 2px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.avisos-page .doc-body .legal-subtitle {
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--indigo);
}

/* Volver arriba */
.avisos-page .back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.15s ease;
}
.avisos-page .back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.avisos-page .back-to-top:hover {
  background: var(--indigo);
}
.avisos-page .back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Foco visible */
.avisos-page .sidebar-link:focus-visible,
.avisos-page .mobile-tab:focus-visible,
.avisos-page .back-to-top:focus-visible,
.avisos-page .breadcrumb a:focus-visible,
.avisos-page .doc-body a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 1023px) {
  .avisos-page .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .avisos-page .sidebar {
    display: none;
  }
  .avisos-page .mobile-tabs {
    display: block;
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    padding: 10px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .avisos-page .mobile-tabs .scroller {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .avisos-page .mobile-tabs .scroller::-webkit-scrollbar {
    display: none;
  }
  .avisos-page .mobile-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-soft);
  }
  .avisos-page .mobile-tab.active {
    border-color: var(--violet);
    background: var(--violet);
    color: #fff;
  }
  .avisos-page .content {
    padding-top: 8px;
  }
}
@media (max-width: 680px) {
  .avisos-page {
    --header-h: 88px;
  }
  .avisos-page .page-head {
    padding: 28px 0 24px;
  }
  .avisos-page .mobile-tabs .scroller {
    padding: 0 20px;
  }
}
